Searched refs:newpass (Results 1 – 7 of 7) sorted by relevance
/freebsd/contrib/pam_modules/pam_passwdqc/ |
H A D | passwdqc_check.c | 63 static int is_simple(passwdqc_params_t *params, const char *newpass) in is_simple() argument 72 while ((c = (unsigned char)newpass[length])) { in is_simple() 85 if (!strchr(&newpass[length], c)) in is_simple() 93 c = (unsigned char)newpass[0]; in is_simple() 95 c = (unsigned char)newpass[length - 1]; in is_simple() 277 const char *newpass, const char *oldpass, struct passwd *pw) in _passwdqc_check() argument 293 if (oldpass && !strcmp(oldpass, newpass)) in _passwdqc_check() 296 length = strlen(newpass); in _passwdqc_check() 304 strncat(truncated, newpass, 8); in _passwdqc_check() 305 newpass = truncated; in _passwdqc_check() [all …]
|
H A D | pam_passwdqc.c | 180 static int check_max(params_t *params, pam_handle_t *pamh, const char *newpass) in check_max() argument 182 if ((int)strlen(newpass) > params->qc.max) { in check_max() 321 char *newpass, *randompass; in pam_sm_chauthtok() local 493 newpass = strdup(resp->resp); in pam_sm_chauthtok() 497 if (!newpass) { in pam_sm_chauthtok() 502 if (check_max(¶ms, pamh, newpass) && enforce) { in pam_sm_chauthtok() 509 (!randompass || !strstr(newpass, randompass)) && in pam_sm_chauthtok() 511 (reason = _passwdqc_check(¶ms.qc, newpass, oldpass, pw)))) { in pam_sm_chauthtok() 527 if (strcmp(newpass, resp->resp)) { in pam_sm_chauthtok() 541 status = pam_set_item(pamh, PAM_AUTHTOK, newpass); in pam_sm_chauthtok() [all …]
|
H A D | passwdqc.h | 21 const char *newpass, const char *oldpass, struct passwd *pw);
|
/freebsd/crypto/openssl/crypto/pkcs12/ |
H A D | p12_npas.c | 20 static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass); 22 const char *newpass); 24 const char *newpass); 32 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass) in PKCS12_newpass() argument 48 if (!newpass_p12(p12, oldpass, newpass)) { in PKCS12_newpass() 58 static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass) in newpass_p12() argument 89 if (!newpass_bags(bags, oldpass, newpass)) in newpass_p12() 95 p7new = PKCS12_pack_p7encdata(pbe_nid, newpass, -1, NULL, in newpass_p12() 111 if (!PKCS12_gen_mac(p12, newpass, -1, mac, &maclen)) in newpass_p12() 134 const char *newpass) in newpass_bags() argument [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | PKCS12_newpass.pod | 11 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass); 18 and B<newpass> is the new password. 20 Each of B<oldpass> and B<newpass> is independently interpreted as a string in 61 fprintf(stderr, "Usage: pkread p12file password newpass opfile\n");
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | pkcs12.h | 345 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);
|
H A D | pkcs12.h.in | 322 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);
|