summaryrefslogtreecommitdiffstats
path: root/lib/libutil/auth.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2012-06-12 17:02:53 +0000
committerdes <des@FreeBSD.org>2012-06-12 17:02:53 +0000
commit24379c8402f6e6edd7e88821a9eb0cc0fb7a1b39 (patch)
tree3fa2c67dc2f84e91827b2258b54a5a5dec5773bf /lib/libutil/auth.c
parent7ad332ffbb8b0784030c552a80abe0d29bcce073 (diff)
downloadFreeBSD-src-24379c8402f6e6edd7e88821a9eb0cc0fb7a1b39.zip
FreeBSD-src-24379c8402f6e6edd7e88821a9eb0cc0fb7a1b39.tar.gz
Finally nuke auth.conf, nine years after it was deprecated. The only
thing it was still used for was to set the "global default" password hash. Since the stock auth.conf contained nothing but comments, the global default was actually the first algorithm in crypt(3)'s list, which happens to be DES; I take the fact that nobody noticed as proof that it was not used outside of crypt(3). The only other use in our tree was in the Kerberos support code in in tinyware's passwd(1). I removed that code in an earlier commit; it would not have compiled anyway, as it only supported Kerberos IV. The auth_getval() function is now a stub that always returns NULL, which has the same effect as a functional auth_getval() with an empty auth.conf. MFC after: 3 weeks
Diffstat (limited to 'lib/libutil/auth.c')
-rw-r--r--lib/libutil/auth.c36
1 files changed, 5 insertions, 31 deletions
diff --git a/lib/libutil/auth.c b/lib/libutil/auth.c
index 748c3ad..b57a784 100644
--- a/lib/libutil/auth.c
+++ b/lib/libutil/auth.c
@@ -31,40 +31,14 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include <sys/types.h>
-#include <fcntl.h>
-#include <libutil.h>
-#include <paths.h>
-#include <syslog.h>
-#include <unistd.h>
-
-static properties P;
-
-static int
-initauthconf(const char *path)
-{
- int fd;
+#include <stdlib.h>
- if (!P) {
- if ((fd = open(path, O_RDONLY)) < 0) {
- syslog(LOG_ERR, "initauthconf: unable to open file: %s", path);
- return 1;
- }
- P = properties_read(fd);
- close(fd);
- if (!P) {
- syslog(LOG_ERR, "initauthconf: unable to parse file: %s", path);
- return 1;
- }
- }
- return 0;
-}
+#include <libutil.h>
char *
auth_getval(const char *name)
{
- if (!P && initauthconf(_PATH_AUTHCONF))
- return NULL;
- else
- return property_find(P, name);
+
+ (void)name;
+ return (NULL);
}
OpenPOWER on IntegriCloud