MCPcopy Create free account
hub / github.com/F-Stack/f-stack / login_setcryptfmt

Function login_setcryptfmt

tools/libutil/login_crypt.c:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37#include <unistd.h>
38
39const char *
40login_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}

Callers

nothing calls this directly

Calls 2

login_getcapstrFunction · 0.85
crypt_set_formatFunction · 0.85

Tested by

no test coverage detected