diff options
author | green <green@FreeBSD.org> | 2000-08-23 03:45:57 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2000-08-23 03:45:57 +0000 |
commit | 678850dbf85bb21e07fe9dfe2f1646eccfe1ec15 (patch) | |
tree | 6f401f50fc14eaaeca713c9e55b3f706d6d8a1bf /lib/libutil/login_cap.c | |
parent | 5151bf4ea26689f77c9f1f07f949634687f881dd (diff) | |
download | FreeBSD-src-678850dbf85bb21e07fe9dfe2f1646eccfe1ec15.zip FreeBSD-src-678850dbf85bb21e07fe9dfe2f1646eccfe1ec15.tar.gz |
Stick login_setcryptfmt() in its own file to make pulling in of
-lcrypt only happen if truly necessary.
Diffstat (limited to 'lib/libutil/login_cap.c')
-rw-r--r-- | lib/libutil/login_cap.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c index 7410380..b7528b9 100644 --- a/lib/libutil/login_cap.c +++ b/lib/libutil/login_cap.c @@ -798,16 +798,3 @@ login_getstyle(login_cap_t *lc, char *style, const char *auth) return lc->lc_style; } - -const char * -login_setcryptfmt(login_cap_t *lc, const char *def, const char *error) -{ - const char *cipher; - - cipher = login_getcapstr(lc, "passwd_format", def, NULL); - if (cipher == NULL) - return (error); - if (!crypt_set_format(cipher)) - return (error); - return (cipher); -} |