/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/ |
H A D | pwd.d | 54 struct passwd in version() struct 67 struct passwd 83 struct passwd 100 struct passwd 116 struct passwd 132 struct passwd 149 struct passwd 164 struct passwd 176 struct passwd 189 struct passwd [all …]
|
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | passfile.c | 41 struct berval *passwd ) in lutil_get_filed_password() argument 51 passwd->bv_val = NULL; in lutil_get_filed_password() 52 passwd->bv_len = 4096; in lutil_get_filed_password() 65 passwd->bv_len = sb.st_size; in lutil_get_filed_password() 70 passwd->bv_val = (char *) ber_memalloc( passwd->bv_len + 1 ); in lutil_get_filed_password() 71 if( passwd->bv_val == NULL ) { in lutil_get_filed_password() 78 nleft = passwd->bv_len; in lutil_get_filed_password() 82 char *p = (char *) ber_memrealloc( passwd->bv_val, in lutil_get_filed_password() 83 2 * passwd->bv_len + 1 ); in lutil_get_filed_password() 85 ber_memfree( passwd->bv_val ); in lutil_get_filed_password() [all …]
|
H A D | passwd.c | 246 const struct berval * passwd, in passwd_scheme() argument 254 if( passwd->bv_len >= scheme->name.bv_len ) { in passwd_scheme() 255 if( strncasecmp( passwd->bv_val, scheme->name.bv_val, scheme->name.bv_len ) == 0 ) { in passwd_scheme() 256 bv->bv_val = &passwd->bv_val[scheme->name.bv_len]; in passwd_scheme() 257 bv->bv_len = passwd->bv_len - scheme->name.bv_len; in passwd_scheme() 271 const struct berval *passwd, /* stored passwd */ in lutil_passwd() argument 281 passwd == NULL || passwd->bv_len == 0 ) in lutil_passwd() 292 passwd, &x, schemes ); in lutil_passwd() 304 if (( passwd->bv_val[0] == '{' ) && in lutil_passwd() 305 ( ber_bvchr( passwd, '}' ) > passwd->bv_val+1 )) in lutil_passwd() [all …]
|
H A D | ptest.c | 65 struct berval *passwd; in main() local 77 &passwd, &salt, hash[i] ); in main() 81 passwd = lutil_passwd_hash( &pw[j], hash[i] ); in main() 83 if( passwd == NULL ) in main() 93 rc = lutil_authpasswd( &pw[j], passwd, salt, NULL ); in main() 95 rc = lutil_passwd( passwd, &pw[j], NULL ); in main() 99 pw[j].bv_val, pw[j].bv_len, passwd->bv_val, passwd->bv_len, in main() 103 rc = lutil_authpasswd( passwd, salt, &bad, NULL ); in main() 105 rc = lutil_passwd( passwd, &bad, NULL ); in main() 109 bad.bv_val, bad.bv_len, passwd->bv_val, passwd->bv_len, in main()
|
/netbsd-src/usr.bin/chpass/ |
H A D | chpass.h | 34 struct passwd; 38 int (*func)(const char *, struct passwd *, struct _entry *), restricted, len; 55 void display(char *, int, struct passwd *); 56 void edit(char *, struct passwd *); 59 int p_change(const char *, struct passwd *, ENTRY *); 60 int p_class(const char *, struct passwd *, ENTRY *); 61 int p_expire(const char *, struct passwd *, ENTRY *); 62 int p_gecos(const char *, struct passwd *, ENTRY *); 63 int p_gid(const char *, struct passwd *, ENTRY *); 64 int p_hdir(const char *, struct passwd *, ENTRY *); [all …]
|
/netbsd-src/sys/external/isc/libsodium/dist/test/default/ |
H A D | pwhash_scrypt.c | 93 char passwd[256]; in tv() local 100 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv() 106 out, (unsigned long long) tests[i].outlen, passwd, in tv() 142 char passwd[256]; in tv2() local 149 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2() 155 out, (unsigned long long) tests[i].outlen, passwd, in tv2() 169 const char *passwd; in tv3() member 278 char * passwd; in tv3() local 285 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3() 286 assert(passwd != NULL); in tv3() [all …]
|
H A D | pwhash_argon2i.c | 81 char passwd[256]; in tv() local 88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv() 93 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv() 133 char passwd[256]; in tv2() local 140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2() 145 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv2() 192 const char *passwd; in tv3() member 209 char *passwd; in tv3() local 216 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3() 217 assert(passwd != NULL); in tv3() [all …]
|
H A D | pwhash_argon2id.c | 81 char passwd[256]; in tv() local 88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv() 93 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv() 133 char passwd[256]; in tv2() local 140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2() 145 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd, in tv2() 188 const char *passwd; in tv3() member 205 char *passwd; in tv3() local 212 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3() 213 assert(passwd != NULL); in tv3() [all …]
|
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/passwd/ |
H A D | apr1.c | 63 const struct berval *passwd, in do_phk_hash() argument 73 lutil_MD5Update(&ctx, (const unsigned char *) passwd->bv_val, passwd->bv_len); in do_phk_hash() 78 lutil_MD5Update(&ctx1, (const unsigned char *) passwd->bv_val, passwd->bv_len); in do_phk_hash() 80 lutil_MD5Update(&ctx1, (const unsigned char *) passwd->bv_val, passwd->bv_len); in do_phk_hash() 83 for (n = passwd->bv_len; n > 0; n -= LUTIL_MD5_BYTES) in do_phk_hash() 88 for (n = passwd->bv_len; n; n >>= 1) in do_phk_hash() 92 lutil_MD5Update(&ctx, (const unsigned char *) passwd->bv_val, 1); in do_phk_hash() 102 (const unsigned char *) passwd->bv_val, passwd->bv_len); in do_phk_hash() 111 (const unsigned char *) passwd->bv_val, passwd->bv_len); in do_phk_hash() 117 (const unsigned char *) passwd->bv_val, passwd->bv_len); in do_phk_hash() [all …]
|
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/passwd/sha2/ |
H A D | slapd-sha2.c | 47 const struct berval *passwd, in hash_ssha256() argument 67 SHA256_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len); in hash_ssha256() 76 const struct berval *passwd, in hash_sha256() argument 87 SHA256_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len); in hash_sha256() 95 const struct berval *passwd, in hash_ssha384() argument 115 SHA384_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len); in hash_ssha384() 124 const struct berval *passwd, in hash_sha384() argument 135 SHA384_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len); in hash_sha384() 143 const struct berval *passwd, in hash_ssha512() argument 163 SHA512_Update(&ct, (const uint8_t*)passwd->bv_val, passwd->bv_len); in hash_ssha512() [all …]
|
/netbsd-src/external/bsd/libbind/dist/irs/ |
H A D | getpwent_r.c | 50 copy_passwd(struct passwd *, struct passwd *, char *buf, int buflen); 55 __posix_getpwnam_r(const char *login, struct passwd *pwptr, 56 char *buf, size_t buflen, struct passwd **result) { 59 getpwnam_r(const char *login, struct passwd *pwptr, 60 char *buf, size_t buflen, struct passwd **result) { 62 struct passwd *pw = getpwnam(login); 76 struct passwd * 77 getpwnam_r(const char *login, struct passwd *pwptr, char *buf, int buflen) { 78 struct passwd *pw = getpwnam(login); 92 __posix_getpwuid_r(uid_t uid, struct passwd *pwptr, [all …]
|
H A D | dns_pw.c | 54 struct passwd passwd; member 61 static struct passwd * pw_byname(struct irs_pw *, const char *); 62 static struct passwd * pw_byuid(struct irs_pw *, uid_t); 63 static struct passwd * pw_next(struct irs_pw *); 71 static struct passwd * getpwcommon(struct irs_pw *, const char *, 123 static struct passwd * 128 static struct passwd * 136 static struct passwd * 174 static struct passwd * 187 memset(&pvt->passwd, 0, sizeof pvt->passwd); in getpwcommon() [all …]
|
H A D | nis_pw.c | 69 struct passwd passwd; member 81 static struct passwd * pw_next(struct irs_pw *); 82 static struct passwd * pw_byname(struct irs_pw *, const char *); 83 static struct passwd * pw_byuid(struct irs_pw *, uid_t); 87 static struct passwd * makepasswdent(struct irs_pw *); 135 static struct passwd * 138 struct passwd *rval; in pw_next() 170 static struct passwd * 187 static struct passwd * 219 static struct passwd * [all …]
|
H A D | lcl_pw.c | 100 struct passwd passwd; /*%< password structure */ member 111 static struct passwd * pw_next(struct irs_pw *); 112 static struct passwd * pw_byname(struct irs_pw *, const char *); 113 static struct passwd * pw_byuid(struct irs_pw *, uid_t); 167 static struct passwd * 182 return (hashpw(this, &key) ? &pvt->passwd : NULL); in pw_next() 185 static struct passwd * 202 return (rval ? &pvt->passwd : NULL); in pw_byname() 206 static struct passwd * 223 return (rval ? &pvt->passwd : NULL); in pw_byuid() [all …]
|
H A D | irp_pw.c | 62 struct passwd passwd; /*%< password structure */ member 68 static struct passwd * pw_next(struct irs_pw *); 69 static struct passwd * pw_byname(struct irs_pw *, const char *); 70 static struct passwd * pw_byuid(struct irs_pw *, uid_t); 74 static void free_passwd(struct passwd *pw); 120 free_passwd(&pvt->passwd); in pw_close() 131 static struct passwd * 134 struct passwd *pw = &pvt->passwd; in pw_next() 175 static struct passwd * 178 struct passwd *pw = &pvt->passwd; in pw_byname() [all …]
|
/netbsd-src/include/ |
H A D | pwd.h | 107 struct passwd { struct 122 struct passwd *getpwuid(uid_t) __RENAME(__getpwuid50); argument 123 struct passwd *getpwnam(const char *) __RENAME(__getpwnam50); 128 int getpwnam_r(const char *, struct passwd *, char *, size_t, 129 struct passwd **) __RENAME(__getpwnam_r50); 130 int getpwuid_r(uid_t, struct passwd *, char *, size_t, 131 struct passwd **) __RENAME(__getpwuid_r50); 136 struct passwd *getpwent(void) __RENAME(__getpwent50); 144 int pw_scan(char *, struct passwd *, int *) __RENAME(__pw_scan50); 145 int getpwent_r(struct passwd *, char *, size_t, struct passwd **) [all …]
|
/netbsd-src/lib/libc/compat/include/ |
H A D | pwd.h | 10 struct passwd; 26 passwd_to_passwd50(const struct passwd *p, struct passwd50 *q) in passwd_to_passwd50() 41 passwd50_to_passwd(const struct passwd50 *p, struct passwd *q) in passwd50_to_passwd() 76 struct passwd *__getpwuid50(uid_t); 77 struct passwd *__getpwnam50(const char *); 80 int __getpwnam_r50(const char *, struct passwd *, char *, size_t, 81 struct passwd **); 82 int __getpwuid_r50(uid_t, struct passwd *, char *, size_t, 83 struct passwd **); 86 struct passwd *__getpwent50(void); [all …]
|
/netbsd-src/crypto/external/bsd/openssh/dist/ |
H A D | auth.h | 47 struct passwd; 69 struct passwd *pw; /* set if 'valid' */ 142 auth_rhosts2(struct passwd *, const char *, const char *, const char *); 146 int hostbased_key_allowed(struct ssh *, struct passwd *, 148 int user_key_allowed(struct ssh *ssh, struct passwd *, struct sshkey *, 190 int allowed_user(struct ssh *, struct passwd *); 191 struct passwd * getpwnamallow(struct ssh *, const char *user); 193 char *expand_authorized_keys(const char *, struct passwd *pw); 194 char *authorized_principals_file(struct passwd *); 201 check_key_in_hostfiles(struct passwd *, struct sshkey *, const char *, [all …]
|
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | getxxyyy.c | 45 rk_getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **); 47 rk_getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **); 52 copypw(struct passwd *pwd, char *buffer, size_t bufsize, const struct passwd *p) in copypw() 54 struct passwd *p; in copypw() 91 rk_getpwnam_r(const char *name, struct passwd *pwd, char *buffer, in rk_getpwnam_r() 92 size_t bufsize, struct passwd **result) in rk_getpwnam_r() 94 struct passwd *p; in rk_getpwnam_r() 117 rk_getpwnam_r(const char *name, struct passwd *pwd, char *buffer, in rk_getpwnam_r() 118 size_t bufsize, struct passwd **result) in rk_getpwnam_r() 120 struct passwd *p; in rk_getpwnam_r() [all …]
|
/netbsd-src/usr.sbin/lastlogin/ |
H A D | lastlogin.c | 118 static void process_entry(struct passwd *, struct lastlog *); 122 static void process_entryx(struct passwd *, struct lastlogx *); 221 struct passwd *passwd; in dolastlog() local 231 if ((passwd = getpwnam(argv[i])) == NULL) { in dolastlog() 236 offset = passwd->pw_uid * sizeof(l); in dolastlog() 242 warnx("fread error on '%s'", passwd->pw_name); in dolastlog() 246 process_entry(passwd, &l); in dolastlog() 254 if ((passwd = getpwuid(i)) == NULL) { in dolastlog() 255 static struct passwd p; in dolastlog() 260 passwd = &p; in dolastlog() [all …]
|
/netbsd-src/crypto/external/cpl/tpm-tools/dist/src/tpm_mgmt/ |
H A D | tpm_changeauth.c | 114 char *passwd = NULL; in main() local 152 passwd = (char *)well_known_secret; in main() 155 passwd = _GETPASSWD(_("Enter owner password: "), &pswd_len, in main() 157 if (!passwd) { in main() 166 if (policySetSecret(hTpmPolicy, pswd_len, (BYTE *)passwd) != TSS_SUCCESS) in main() 170 shredPasswd(passwd); in main() 171 passwd = NULL; in main() 178 passwd = (char *)well_known_secret; in main() 181 passwd = _GETPASSWD(_(auths[i].prompt), &pswd_len, in main() 183 if (!passwd) { in main() [all …]
|
/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/passwd/totp/ |
H A D | slapd-totp.c | 426 const struct berval *passwd, in chk_totp() argument 477 key.mv_len = passwd->bv_len * 5 / 8; in chk_totp() 483 rc = totp_b32_pton(passwd->bv_val, key.mv_val, key.mv_len); in chk_totp() 522 const struct berval *passwd, in chk_totp_and_pw() argument 537 s = strchr(passwd->bv_val, DELIM); in chk_totp_and_pw() 539 len = s - passwd->bv_val; in chk_totp_and_pw() 543 if (!ber_str2bv(passwd->bv_val, len, 1, &passwd_otp)) in chk_totp_and_pw() 575 const struct berval *passwd, in chk_totp1() argument 579 return chk_totp(passwd, cred, TOTP_SHA1, text); in chk_totp1() 584 const struct berval *passwd, in chk_totp256() argument [all …]
|
/netbsd-src/distrib/utils/libhack/ |
H A D | getpwent.c | 72 static int pwscan(int, uid_t, const char *, struct passwd *, 74 static int pwmatchline(int, uid_t, const char *, struct passwd *, 78 static struct passwd _pw_passwd; /* password structure */ 86 struct passwd * 97 getpwent_r(struct passwd *pwres, char *buf, size_t bufsiz, in getpwent_r() 98 struct passwd **pwd) in getpwent_r() 112 struct passwd * 115 struct passwd *pwd; in getpwnam() 121 getpwnam_r(const char *name, struct passwd *pwres, char *buf, size_t bufsiz, in getpwnam_r() 122 struct passwd **pwd) in getpwnam_r() [all …]
|
/netbsd-src/external/historical/nawk/dist/testdir/ |
H A D | T.redir | 5 $awk '{ print >"foo" }' /etc/passwd 6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")' 9 $awk '{ print >>"foo" }' /etc/passwd 10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")' 14 NR%2 == 0 { print >"foo" }' /etc/passwd 15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")' 18 $awk '{ print | "cat >foo" }' /etc/passwd 19 diff foo /etc/passwd || echo 'BAD: T.redir (print | "cat >foo")' 31 $awk '{ print >"/dev/stderr" }' /etc/passwd 1>foo1 2>foo2 32 diff foo2 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stderr")' [all …]
|
/netbsd-src/lib/libc/gen/ |
H A D | getpwent.c | 157 _pw_parse(const char *entry, struct passwd *pw, char *buf, size_t buflen, in _pw_parse() 239 struct passwd *pw, char *buffer, size_t buflen, int *pwflags, in _pw_getkey() 340 _pw_copy(const struct passwd *frompw, struct passwd *pw, in _pw_copy() 341 char *buf, size_t buflen, const struct passwd *protopw, int protoflags) in _pw_copy() 414 static struct passwd _files_passwd; 455 _files_pwscan(int *retval, struct passwd *pw, char *buffer, size_t buflen, in _files_pwscan() 574 struct passwd **retval = va_arg(ap, struct passwd **); in _files_getpwent() 594 struct passwd *pw = va_arg(ap, struct passwd *); in _files_getpwent_r() 597 struct passwd **result = va_arg(ap, struct passwd **); in _files_getpwent_r() 619 struct passwd **retval = va_arg(ap, struct passwd **); in _files_getpwnam() [all …]
|