/systemd-251/src/shared/ |
D | user-record-nss.c | 96 strv_free_erase(hr->hashed_password); in nss_passwd_to_user_record() 97 hr->hashed_password = strv_new(spwd->sp_pwdp); in nss_passwd_to_user_record() 98 if (!hr->hashed_password) in nss_passwd_to_user_record() 101 hr->hashed_password = strv_free_erase(hr->hashed_password); in nss_passwd_to_user_record() 148 …strv_isempty(hr->hashed_password), "privileged", JSON_BUILD_OBJECT(JSON_BUILD_PAIR("hashedPassword… in nss_passwd_to_user_record() 162 (!strv_isempty(hr->hashed_password) ? USER_RECORD_PRIVILEGED : 0); in nss_passwd_to_user_record() 353 g->hashed_password = strv_new(sgrp->sg_passwd); in nss_group_to_group_record() 354 if (!g->hashed_password) in nss_group_to_group_record() 371 …!strv_isempty(g->hashed_password), "privileged", JSON_BUILD_OBJECT(JSON_BUILD_PAIR("hashedPassword… in nss_group_to_group_record() 377 (!strv_isempty(g->hashed_password) ? USER_RECORD_PRIVILEGED : 0); in nss_group_to_group_record()
|
D | libcrypt-util.c | 182 int test_password_one(const char *hashed_password, const char *password) { in test_password_one() argument 188 k = crypt_ra(password, hashed_password, &cd_data, &cd_size); in test_password_one() 196 return streq(k, hashed_password); in test_password_one() 199 int test_password_many(char **hashed_password, const char *password) { in test_password_many() argument 202 STRV_FOREACH(hpw, hashed_password) { in test_password_many()
|
D | libcrypt-util.h | 12 int test_password_one(const char *hashed_password, const char *password); 13 int test_password_many(char **hashed_password, const char *password);
|
D | user-record-show.c | 135 if (strv_isempty(hr->hashed_password)) { in user_record_show() 141 if (strv_contains(hr->hashed_password, "")) { in user_record_show() 146 STRV_FOREACH(p, hr->hashed_password) in user_record_show() 489 k = strv_length(hr->hashed_password); in user_record_show() 573 if (!strv_isempty(gr->hashed_password)) in group_record_show() 574 printf(" Passwords: %zu\n", strv_length(gr->hashed_password)); in group_record_show()
|
D | user-record.h | 185 char *hashed_password; member 202 char *hashed_password; member 213 char *hashed_password; member 280 char **hashed_password; member
|
D | group-record.h | 30 char **hashed_password; /* maps to 'struct sgrp' .sg_passwd field */ member
|
D | group-record.c | 37 strv_free_erase(g->hashed_password); in group_record_free() 49 …JSON_VARIANT_TYPE_INVALID, json_dispatch_strv, offsetof(GroupRecord, hashed_password), JSON_SAFE }, in dispatch_privileged()
|
D | user-record.c | 100 erase_and_free(k->hashed_password); in pkcs11_encrypted_key_done() 116 erase_and_free(s->hashed_password); in fido2_hmac_salt_done() 124 erase_and_free(k->hashed_password); in recovery_key_done() 149 strv_free_erase(h->hashed_password); in user_record_free() 761 …RIANT_STRING, json_dispatch_string, offsetof(Pkcs11EncryptedKey, hashed_password), JSON_MANDAT… in dispatch_pkcs11_key() 888 …ANT_STRING, json_dispatch_string, offsetof(Fido2HmacSalt, hashed_password), JSON_MANDAT… in dispatch_fido2_hmac_salt() 935 …d", JSON_VARIANT_STRING, json_dispatch_string, offsetof(RecoveryKey, hashed_password), JSON_MANDAT… in dispatch_recovery_key() 1022 …VARIANT_TYPE_INVALID, json_dispatch_strv, offsetof(UserRecord, hashed_password), JSON_S… in dispatch_privileged() 1953 return !strv_isempty(h->hashed_password); in user_record_can_authenticate()
|
/systemd-251/src/firstboot/ |
D | firstboot.c | 795 static int write_root_shadow(const char *shadow_path, const char *hashed_password) { in write_root_shadow() argument 800 assert(hashed_password); in write_root_shadow() 817 i->sp_pwdp = (char *) hashed_password; in write_root_shadow() 831 .sp_pwdp = (char *) hashed_password, in write_root_shadow() 867 const char *password, *hashed_password; in process_root_args() local 928 hashed_password = arg_root_password; in process_root_args() 935 hashed_password = _hashed_password; in process_root_args() 938 password = hashed_password = PASSWORD_NONE; in process_root_args() 940 password = hashed_password = PASSWORD_LOCKED_AND_INVALID; in process_root_args() 948 r = write_root_shadow(etc_shadow, hashed_password); in process_root_args()
|
/systemd-251/src/home/ |
D | user-record-pwquality.c | 41 r = test_password_many(hr->hashed_password, *pp); in user_record_quality_check_password() 53 r = test_password_many(hr->hashed_password, *old); in user_record_quality_check_password()
|
D | user-record-util.c | 572 if (strv_isempty(h->hashed_password)) in user_record_test_password() 576 r = test_password_many(h->hashed_password, *i); in user_record_test_password() 616 r = test_password_one(h->recovery_key[j].hashed_password, p); in user_record_test_recovery_key() 788 np = strv_copy(h->hashed_password); in user_record_make_hashed_password() 827 strv_free_and_replace(h->hashed_password, np); in user_record_make_hashed_password() 833 int user_record_set_hashed_password(UserRecord *h, char **hashed_password) { in user_record_set_hashed_password() argument 842 if (strv_isempty(hashed_password)) in user_record_set_hashed_password() 847 copy = strv_copy(hashed_password); in user_record_set_hashed_password() 866 strv_free_and_replace(h->hashed_password, copy); in user_record_set_hashed_password()
|
D | homework.c | 102 r = test_password_one(h->pkcs11_encrypted_key[n].hashed_password, *pp); in user_record_authenticate() 115 r = test_password_one(h->fido2_hmac_salt[n].hashed_password, *pp); in user_record_authenticate() 160 … r = test_password_one(data.encrypted_key->hashed_password, data.decrypted_password); in user_record_authenticate() 212 … r = test_password_one(h->fido2_hmac_salt[n].hashed_password, decrypted_password); in user_record_authenticate() 1102 if (strv_isempty(h->hashed_password)) in user_record_compile_effective_passwords() 1110 STRV_FOREACH(i, h->hashed_password) { in user_record_compile_effective_passwords() 1140 … log_debug("Looking for plaintext recovery key for: %s", h->recovery_key[n].hashed_password); in user_record_compile_effective_passwords() 1158 r = test_password_one(h->recovery_key[n].hashed_password, p); in user_record_compile_effective_passwords() 1192 r = test_password_one(data.encrypted_key->hashed_password, data.decrypted_password); in user_record_compile_effective_passwords() 1220 r = test_password_one(h->fido2_hmac_salt[n].hashed_password, decrypted_password); in user_record_compile_effective_passwords()
|
D | user-record-util.h | 51 int user_record_set_hashed_password(UserRecord *h, char **hashed_password);
|
D | homectl.c | 1293 if (strv_isempty(hr->hashed_password)) { in create_home()
|
/systemd-251/src/nss-systemd/ |
D | userdb-glue.c | 149 …assert_se(hashed = strv_isempty(hr->hashed_password) ? PASSWORD_LOCKED_AND_INVALID : hr->hashed_pa… in nss_pack_user_record_shadow() 427 …assert_se(hashed = strv_isempty(hr->hashed_password) ? PASSWORD_LOCKED_AND_INVALID : hr->hashed_pa… in nss_pack_group_record_shadow()
|
/systemd-251/src/nspawn/ |
D | nspawn-bind-user.c | 129 … JSON_BUILD_PAIR_CONDITION(!strv_isempty(u->hashed_password), "privileged", JSON_BUILD_OBJECT( in convert_user()
|