diff options
author | Brian Feldman <green@FreeBSD.org> | 2000-08-23 03:45:57 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 2000-08-23 03:45:57 +0000 |
commit | ec77fbdd713dcc79888a798e968d369f6ff0e933 (patch) | |
tree | b25119956352b4ab7e7014a3718ec3e8ed965ca0 /libutil/login_cap.c | |
parent | c12b6d6f889a718321f8a3ac8ae7ed1be7214a38 (diff) | |
download | pw-darwin-ec77fbdd713dcc79888a798e968d369f6ff0e933.tar.gz pw-darwin-ec77fbdd713dcc79888a798e968d369f6ff0e933.tar.zst pw-darwin-ec77fbdd713dcc79888a798e968d369f6ff0e933.zip |
Stick login_setcryptfmt() in its own file to make pulling in of
-lcrypt only happen if truly necessary.
Diffstat (limited to 'libutil/login_cap.c')
-rw-r--r-- | libutil/login_cap.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libutil/login_cap.c b/libutil/login_cap.c index 7410380..b7528b9 100644 --- a/libutil/login_cap.c +++ b/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); -} |