| 37 | #include <unistd.h> |
| 38 | |
| 39 | const char * |
| 40 | login_setcryptfmt(login_cap_t *lc, const char *def, const char *error) { |
| 41 | const char *cipher; |
| 42 | |
| 43 | cipher = login_getcapstr(lc, "passwd_format", def, NULL); |
| 44 | if (getenv("CRYPT_DEBUG") != NULL) |
| 45 | fprintf(stderr, "login_setcryptfmt: " |
| 46 | "passwd_format = %s\n", cipher); |
| 47 | if (cipher == NULL) |
| 48 | return (error); |
| 49 | if (!crypt_set_format(cipher)) |
| 50 | return (error); |
| 51 | return (cipher); |
| 52 | } |
nothing calls this directly
no test coverage detected