62 char *crypted =
crypt(passwd, pwd->pw_passwd);
63 if (!crypted || strcmp(pwd->pw_passwd, crypted)) {
73shadow_auth(
char *user,
char *passwd)
80 char *crypted =
crypt(passwd, pwd->sp_pwdp);
81 if (!crypted || strcmp(pwd->sp_pwdp, crypted)) {
95 char *user, *passwd, *p;
97 setbuf(stdout,
nullptr);
100 if ((p = strchr(buf,
'\n')) !=
nullptr)
103 if ((user = strtok(buf,
" ")) ==
nullptr) {
107 if ((passwd = strtok(
nullptr,
"")) ==
nullptr) {
114 auth = shadow_auth(user, passwd);
#define HELPER_INPUT_BUFFER
static int passwd_auth(char *user, char *passwd)
char * crypt(const char *wort, const char *salt)
void rfc1738_unescape(char *url)