| /freebsd-13.1/contrib/apr/user/unix/ |
| H A D | userinfo.c | 37 char pwbuf[PWBUF_SIZE]) in getpwnam_safe() 48 rv = getpwnam_r(username, pw, pwbuf, PWBUF_SIZE, &pwptr); in getpwnam_safe() 74 char pwbuf[PWBUF_SIZE]; in apr_uid_homepath_get() local 77 if ((rv = getpwnam_safe(username, &pw, pwbuf)) != APR_SUCCESS) in apr_uid_homepath_get() 108 char pwbuf[PWBUF_SIZE]; in apr_uid_get() local 111 if ((rv = getpwnam_safe(username, &pw, pwbuf)) != APR_SUCCESS) in apr_uid_get() 126 char pwbuf[PWBUF_SIZE]; in apr_uid_name_get() local 129 rv = getpwuid_r(userid, &pwd, pwbuf, sizeof(pwbuf), &pw); in apr_uid_name_get()
|
| /freebsd-13.1/crypto/heimdal/kadmin/ |
| H A D | ank.c | 84 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 D | cpw.c | 85 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 D | init.c | 53 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-13.1/usr.sbin/rpc.yppasswdd/ |
| H A D | yppasswdd_server.c | 326 char *pwbuf; in update_inplace() local 335 pwbuf = NULL; in update_inplace() 397 free(pwbuf); in update_inplace() 399 if (pwbuf == NULL) { in update_inplace() 413 free(pwbuf); in update_inplace() 420 free(pwbuf); in update_inplace() 426 if (pwbuf == NULL) { in update_inplace() 439 data.data = pwbuf; in update_inplace() 440 data.size = strlen(pwbuf); in update_inplace() 464 free(pwbuf); in update_inplace() [all …]
|
| /freebsd-13.1/crypto/heimdal/lib/gssapi/krb5/ |
| H A D | pname_to_uid.c | 50 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-13.1/contrib/libedit/ |
| H A D | filecomplete.c | 69 char pwbuf[1024]; in fn_tilde_expand() local 93 if (getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf), in fn_tilde_expand() 97 pass = getpwuid_r(getuid(), &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand() 103 if (getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf), &pass) != 0) in fn_tilde_expand() 106 pass = getpwnam_r(temp, &pwres, pwbuf, sizeof(pwbuf)); in fn_tilde_expand()
|
| H A D | readline.c | 1817 char pwbuf[1024]; in username_completion_function() local 1832 getpwent_r(&pwres, pwbuf, sizeof(pwbuf), &pass) == 0 && pass != NULL in username_completion_function()
|
| /freebsd-13.1/crypto/heimdal/kpasswd/ |
| H A D | kpasswd.c | 65 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-13.1/contrib/apr/passwd/ |
| H A D | apr_getpass.c | 232 APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf, apr_size_t *bufsiz) in apr_password_get() argument 236 if (getpass_r(prompt, pwbuf, *bufsiz) == NULL) in apr_password_get() 252 apr_cpystrn(pwbuf, pw_got, *bufsiz); in apr_password_get()
|
| /freebsd-13.1/crypto/heimdal/lib/gssapi/mech/ |
| H A D | gss_pname_to_uid.c | 79 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-13.1/crypto/heimdal/lib/krb5/ |
| H A D | kuserok.c | 252 char pwbuf[2048]; in krb5_kuserok() local 255 if(getpwnam_r(luser, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0) in krb5_kuserok()
|
| /freebsd-13.1/contrib/apr/include/ |
| H A D | apr_lib.h | 189 APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf,
|
| /freebsd-13.1/usr.sbin/pw/ |
| H A D | pw_user.c | 517 char pwbuf[32]; in pw_password() local 525 pwbuf[i] = chars[arc4random_uniform(sizeof(chars)-1)]; in pw_password() 526 pwbuf[i] = '\0'; in pw_password() 534 printf("%s\n", pwbuf); in pw_password() 539 strlcpy(pwbuf, user, sizeof(pwbuf)); in pw_password() 546 return pw_pwcrypt(pwbuf); in pw_password()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 2064 INTERCEPTOR(int, getpwent_r, __sanitizer_passwd *pwbuf, char *buf, 2067 COMMON_INTERCEPTOR_ENTER(ctx, getpwent_r, pwbuf, buf, buflen, pwbufp); 2071 int res = REAL(getpwent_r)(pwbuf, buf, buflen, pwbufp); 2080 COMMON_INTERCEPTOR_ENTER(ctx, getgrent_r, pwbuf, buf, buflen, pwbufp); 2084 int res = REAL(getgrent_r)(pwbuf, buf, buflen, pwbufp); 2098 INTERCEPTOR(int, fgetpwent_r, void *fp, __sanitizer_passwd *pwbuf, char *buf, 2101 COMMON_INTERCEPTOR_ENTER(ctx, fgetpwent_r, fp, pwbuf, buf, buflen, pwbufp); 2105 int res = REAL(fgetpwent_r)(fp, pwbuf, buf, buflen, pwbufp); 2118 INTERCEPTOR(int, fgetgrent_r, void *fp, __sanitizer_group *pwbuf, char *buf, 2121 COMMON_INTERCEPTOR_ENTER(ctx, fgetgrent_r, fp, pwbuf, buf, buflen, pwbufp); [all …]
|