X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/ec77fbdd713dcc79888a798e968d369f6ff0e933..aa5b5408a77058de3c8e473726549ac9a8d725bd:/libutil/login_crypt.c diff --git a/libutil/login_crypt.c b/libutil/login_crypt.c index fd21c9b..e080ba9 100644 --- a/libutil/login_crypt.c +++ b/libutil/login_crypt.c @@ -29,13 +29,18 @@ #include #include +#include +#include #include 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); + cipher = login_getcapstr(lc, "passwd_format", (char *)def, NULL); + if (getenv("CRYPT_DEBUG") != NULL) + fprintf(stderr, "login_setcryptfmt: " + "passwd_format = %s\n", cipher); if (cipher == NULL) return (error); if (!crypt_set_format(cipher))