Home
last modified time | relevance | path

Searched refs:pwbuf (Results 1 – 23 of 23) sorted by relevance

/freebsd/crypto/heimdal/kadmin/
H A Dank.c84 char pwbuf[1024]; in add_one_principal() local
119 random_password (pwbuf, sizeof(pwbuf)); in add_one_principal()
120 password = pwbuf; in add_one_principal()
122 random_password (pwbuf, sizeof(pwbuf)); in add_one_principal()
123 password = pwbuf; in add_one_principal()
131 ret = UI_UTIL_read_pw_string (pwbuf, sizeof(pwbuf), prompt, 1); in add_one_principal()
138 password = pwbuf; in add_one_principal()
H A Dcpw.c85 char pwbuf[128]; in set_password() local
94 ret = UI_UTIL_read_pw_string(pwbuf, sizeof(pwbuf), prompt, 1); in set_password()
99 password = pwbuf; in set_password()
103 memset(pwbuf, 0, sizeof(pwbuf)); in set_password()
H A Dinit.c53 char pwbuf[512]; in create_random_entry() local
55 random_password(pwbuf, sizeof(pwbuf)); in create_random_entry()
56 password = pwbuf; in create_random_entry()
/freebsd/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_server.c321 char *pwbuf; in update_inplace() local
330 pwbuf = NULL; in update_inplace()
392 free(pwbuf); in update_inplace()
393 asprintf(&pwbuf, ":%d:%d:", pw->pw_uid, pw->pw_gid); in update_inplace()
394 if (pwbuf == NULL) { in update_inplace()
398 if (!strstr(data.data, pwbuf)) { in update_inplace()
408 free(pwbuf); in update_inplace()
409 asprintf(&pwbuf, formats[i], in update_inplace()
415 free(pwbuf); in update_inplace()
416 asprintf(&pwbuf, formats[i], in update_inplace()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Dpname_to_uid.c50 char pwbuf[2048]; in _gsskrb5_pname_to_uid()
68 if (getpwnam_r(localname, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0) { in _gsskrb5_pname_to_uid()
/freebsd/contrib/libedit/
H A Dfilecomplete.c69 char pwbuf[1024]; in fn_tilde_expand() local
94 if (getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf), in fn_tilde_expand()
98 pass = getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
104 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand()
107 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
H A Dreadline.c1888 char pwbuf[1024]; in username_completion_function() local
1903 getpwent_r(&pwres, pwbuf, sizeof(pwbuf), &pass) == 0 && pass != NULL in username_completion_function()
/freebsd/crypto/heimdal/kpasswd/
H A Dkpasswd.c65 char pwbuf[BUFSIZ]; in change_password() local
85 ret = UI_UTIL_read_pw_string (pwbuf, sizeof(pwbuf), msg, 1); in change_password()
93 ret = krb5_set_password_using_ccache (context, id, pwbuf, in change_password()
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dlocalauth_k5login.c89 char *newline, linebuf[BUFSIZ], pwbuf[BUFSIZ]; in userok_k5login() local
101 ret = k5_getpwnam_r(lname, &pwx, pwbuf, sizeof(pwbuf), &pwd); in userok_k5login()
H A Dexpand_path.c313 char pwbuf[BUFSIZ]; in expand_username() local
315 if (k5_getpwuid_r(euid, &pwx, pwbuf, sizeof(pwbuf), &pw) != 0) { in expand_username()
/freebsd/crypto/heimdal/lib/gssapi/mech/
H A Dgss_pname_to_uid.c79 char pwbuf[2048]; in attr_pname_to_uid()
110 if (getpwnam_r(localname, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0) in attr_pname_to_uid()
/freebsd/crypto/krb5/src/lib/krb5/ccache/
H A Dccselect_k5identity.c134 char pwbuf[BUFSIZ]; in get_homedir() local
141 if (k5_getpwuid_r(geteuid(), &pwx, pwbuf, sizeof(pwbuf), &pwd) != 0) in get_homedir()
/freebsd/crypto/krb5/src/lib/gssapi/mechglue/
H A Dgssd_pname_to_uid.c198 char pwbuf[BUFSIZ]; in gss_pname_to_uid() local
213 code = k5_getpwnam_r(localuser, &pw, pwbuf, sizeof(pwbuf), &pwd); in gss_pname_to_uid()
/freebsd/crypto/heimdal/lib/krb5/
H A Dkuserok.c252 char pwbuf[2048]; in krb5_kuserok() local
255 if(getpwnam_r(luser, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0) in krb5_kuserok()
/freebsd/usr.bin/login/
H A Dlogin.c113 char pwbuf[1024]; variable
320 (void)getpwnam_r(username, &pwres, pwbuf, sizeof(pwbuf), &pwd); in main()
708 (void)getpwnam_r(tmpl_user, &pwres, pwbuf, in auth_pam()
709 sizeof(pwbuf), &pwd); in auth_pam()
/freebsd/crypto/krb5/src/lib/gssapi/krb5/
H A Dimport_name.c200 char pwbuf[BUFSIZ]; in import_name() local
223 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0) in import_name()
H A Dacquire_cred.c1215 gss_buffer_desc pwbuf; in acquire_cred_from() local
1293 pwbuf.length = strlen(value); in acquire_cred_from()
1294 pwbuf.value = (void *)value; in acquire_cred_from()
1295 password = &pwbuf; in acquire_cred_from()
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dgic_pwd.c24 char promptstr[1024], pwbuf[1024]; in krb5_get_as_key_password() local
79 pw = make_data(pwbuf, sizeof(pwbuf)); in krb5_get_as_key_password()
/freebsd/crypto/krb5/src/appl/gss-sample/
H A Dgss-client.c186 gss_buffer_desc send_tok, recv_tok, pwbuf, *token_ptr; in client_establish_context() local
222 pwbuf.value = password; in client_establish_context()
223 pwbuf.length = strlen(password); in client_establish_context()
226 &pwbuf, 0, mechsp, in client_establish_context()
/freebsd/crypto/krb5/src/util/profile/
H A Dprof_file.c194 char pwbuf[BUFSIZ]; in profile_open_file() local
197 if (!k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) in profile_open_file()
/freebsd/usr.sbin/pw/
H A Dpw_user.c513 char pwbuf[32]; in pw_password() local
521 pwbuf[i] = chars[arc4random_uniform(sizeof(chars)-1)]; in pw_password()
522 pwbuf[i] = '\0'; in pw_password()
530 printf("%s\n", pwbuf); in pw_password()
535 strlcpy(pwbuf, user, sizeof(pwbuf)); in pw_password()
542 return pw_pwcrypt(pwbuf); in pw_password()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc2139 INTERCEPTOR(int, getpwent_r, __sanitizer_passwd *pwbuf, char *buf,
2142 COMMON_INTERCEPTOR_ENTER(ctx, getpwent_r, pwbuf, buf, buflen, pwbufp);
2146 int res = REAL(getpwent_r)(pwbuf, buf, buflen, pwbufp);
2152 INTERCEPTOR(int, getgrent_r, __sanitizer_group *pwbuf, char *buf, SIZE_T buflen,
2155 COMMON_INTERCEPTOR_ENTER(ctx, getgrent_r, pwbuf, buf, buflen, pwbufp);
2159 int res = REAL(getgrent_r)(pwbuf, buf, buflen, pwbufp);
2173 INTERCEPTOR(int, fgetpwent_r, void *fp, __sanitizer_passwd *pwbuf, char *buf,
2176 COMMON_INTERCEPTOR_ENTER(ctx, fgetpwent_r, fp, pwbuf, buf, buflen, pwbufp);
2180 int res = REAL(fgetpwent_r)(fp, pwbuf, buf, buflen, pwbufp);
2193 INTERCEPTOR(int, fgetgrent_r, void *fp, __sanitizer_group *pwbuf, char *buf,
[all …]
/freebsd/crypto/openssl/test/
H A Dsslapitest.c7174 char lrbuf[515], pwbuf[515] = { 0 }, prbuf[20]; in test_key_update_local_in_read() local
7200 if (!TEST_int_eq(SSL_write(peer, pwbuf, sizeof(pwbuf)), -1) in test_key_update_local_in_read()
7218 if (!TEST_int_eq(SSL_write(peer, pwbuf, sizeof(pwbuf)), sizeof(pwbuf)) in test_key_update_local_in_read()