Lines Matching refs:password
351 {"password",
868 char *password;
878 snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password: ",
880 password = read_passphrase(prompt, 0);
886 packet_put_cstring(password);
887 memset(password, 0, strlen(password));
888 xfree(password);
906 char *info, *lang, *password = NULL, *retype = NULL;
929 "Enter %.30s@%.128s's old password: ",
931 password = read_passphrase(prompt, 0);
932 packet_put_cstring(password);
933 memset(password, 0, strlen(password));
934 xfree(password);
935 password = NULL;
936 while (password == NULL) {
938 "Enter %.30s@%.128s's new password: ",
940 password = read_passphrase(prompt, RP_ALLOW_EOF);
941 if (password == NULL) {
946 "Retype %.30s@%.128s's new password: ",
949 if (strcmp(password, retype) != 0) {
950 memset(password, 0, strlen(password));
951 xfree(password);
953 password = NULL;
958 packet_put_cstring(password);
959 memset(password, 0, strlen(password));
960 xfree(password);
970 pw_encrypt(const char *password, const char *crypt_scheme, const char *salt)
977 return xstrdup(crypt(password, salt));
978 error("%s: unsupported password encryption scheme \"%.100s\"",
987 char prompt[256], *password, *crypted;
992 snprintf(prompt, sizeof(prompt), "%.30s@%.128s's password (JPAKE): ",
994 password = read_passphrase(prompt, 0);
996 if ((crypted = pw_encrypt(password, crypt_scheme, salt)) == NULL) {
999 /* Continue with an empty password to fail gracefully */
1013 bzero(password, strlen(password));
1015 xfree(password);
1055 /* Obtain password and derive secret */