Lines Matching defs:pwd
27 static void pwd_init(struct pwd_info *pwd)
29 memset((char *)pwd->password , '\0', sizeof(pwd->password ));
31 pwd->null_pwd = True; /* safest option... */
38 void pwd_set_cleartext(struct pwd_info *pwd, const char *clr)
40 pwd_init(pwd);
42 fstrcpy(pwd->password, clr);
43 pwd->null_pwd = False;
45 pwd->null_pwd = True;
48 pwd->cleartext = True;
55 void pwd_get_cleartext(struct pwd_info *pwd, fstring clr)
57 if (pwd->cleartext)
58 fstrcpy(clr, pwd->password);