Searched refs:pw (Results 226 - 250 of 309) sorted by relevance

1234567891011>>

/freebsd-current/crypto/heimdal/lib/hx509/
H A Dks_file.c185 const struct _hx509_password *pw; local
264 pw = _hx509_lock_get_passwords(lock);
265 if (pw != NULL) {
269 for (i = 0; i < pw->len; i++) {
270 password = pw->val[i];
H A Dks_p12.c613 const struct _hx509_password *pw;
615 pw = _hx509_lock_get_passwords(lock);
616 if (pw != NULL) {
628 ret = calculate_hash(&aspath, pw, pfx.macData);
/freebsd-current/crypto/openssh/
H A Dssh.c561 process_config_files(const char *host_name, struct passwd *pw, int final_pass, argument
569 !read_config_file(config, pw, host, host_name, &options,
575 r = snprintf(buf, sizeof buf, "%s/%s", pw->pw_dir,
578 (void)read_config_file(buf, pw, host, host_name,
583 (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw,
676 struct passwd *pw; local
710 pw = getpwuid(getuid());
711 if (!pw) {
716 pw = pwcopy(pw);
[all...]
H A Dmonitor.c316 if (authctxt->pw->pw_uid == 0 &&
735 authctxt->pw = fakepw();
740 authctxt->pw = pwent;
764 fatal_fr(r, "assemble pw");
1180 allowed = user_key_allowed(ssh, authctxt->pw, key,
1192 allowed = hostbased_key_allowed(ssh, authctxt->pw,
1511 mm_record_login(struct ssh *ssh, Session *s, struct passwd *pw) argument
1530 record_login(s->pid, s->tty, pw->pw_name, pw->pw_uid,
1560 s->pw
[all...]
H A Dauth2.c295 authctxt->pw = PRIVSEP(getpwnamallow(ssh, user));
297 if (authctxt->pw && strcmp(service, "ssh-connection")==0) {
303 authctxt->pw = fakepw();
387 if (authenticated && authctxt->pw->pw_uid == 0 &&
H A Dsftp-server.c69 static struct passwd *pw = NULL; variable in typeref:struct:passwd
1583 if (tilde_expand(path, pw->pw_uid, &npath) != 0) {
1714 verbose("home-directory \"%s\"", pw->pw_dir);
1716 s.name = s.long_name = pw->pw_dir;
1818 client_addr, pw->pw_name);
1879 if (pw != NULL && client_addr != NULL) {
1882 pw->pw_name, client_addr);
1916 pw = pwcopy(user_pw);
1958 (unsigned long long)pw->pw_uid);
2012 pw
[all...]
/freebsd-current/contrib/wpa/src/wps/
H A Dwps_common.c676 struct wpabuf *pw; local
679 pw = wpabuf_alloc(WPS_OOB_DEVICE_PASSWORD_LEN);
680 if (pw == NULL)
683 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN),
686 wpabuf_free(pw);
691 wpabuf_free(pw);
697 *dev_pw = pw;
/freebsd-current/contrib/wpa/src/utils/
H A Dutils_module_tests.c257 struct wpabuf *pw; local
268 pw = ext_password_get(data, "foo");
269 if (pw != NULL)
271 ext_password_free(pw);
275 pw = ext_password_get(NULL, "foo");
276 if (pw != NULL)
278 ext_password_free(pw);
/freebsd-current/lib/librpcsec_gss/
H A Dsvc_rpcsec_gss.c567 struct passwd pwd, *pw; local
579 getpwuid_r(uid, &pwd, buf, sizeof(buf), &pw);
580 if (pw) {
582 uc->uid = pw->pw_uid;
583 uc->gid = pw->pw_gid;
585 getgrouplist(pw->pw_name, pw->pw_gid, uc->gidlist, &len);
/freebsd-current/crypto/heimdal/appl/su/
H A Dsu.c294 char *pw; local
301 pw = crypt(pw_buf, su->pw_passwd);
303 if(strcmp(pw, su->pw_passwd) != 0) {
/freebsd-current/sbin/shutdown/
H A Dshutdown.c101 struct passwd *pw; local
220 whom = (pw = getpwuid(getuid())) ? pw->pw_name : "???";
/freebsd-current/contrib/smbfs/lib/smb/
H A Dctx.c392 struct passwd *pw; local
408 pw = getpwnam(pair);
409 if (pw) {
410 *uid = pw->pw_uid;
/freebsd-current/contrib/nvi/common/
H A Drecover.c316 struct passwd *pw; local
337 if ((pw = getpwuid(uid = getuid())) == NULL) {
402 "To: ", pw->pw_name, "@", host,
416 "On ", ctime(&now), ", the user ", pw->pw_name,
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Dap.h76 const struct wpabuf *pw, const u8 *pubkey_hash);
/freebsd-current/usr.sbin/bluetooth/sdpd/
H A Dserver.c349 struct passwd *pw; local
363 pw = getpwuid(cr.cr_uid);
364 if (pw != NULL)
365 priv = (strcmp(pw->pw_name, "root") == 0);
/freebsd-current/usr.bin/at/
H A Dat.c460 struct passwd *pw; local
515 pw = getpwuid(buf.st_uid);
519 pw ? pw->pw_name : "???",
/freebsd-current/sbin/quotacheck/
H A Dquotacheck.c129 struct passwd *pw; local
182 while ((pw = getpwent()) != NULL)
183 (void) addid((u_long)pw->pw_uid, USRQUOTA, pw->pw_name,
/freebsd-current/sbin/mdmfs/
H A Dmdmfs.c658 struct passwd *pw; local
681 pw = getpwnam(user);
682 if (pw == NULL)
684 *uid = pw->pw_uid;
/freebsd-current/usr.sbin/rpc.lockd/
H A Dkern.c128 struct passwd *pw; local
162 pw = getpwnam(DAEMON_USERNAME);
163 if (pw == NULL) {
167 daemon_uid = pw->pw_uid;
/freebsd-current/usr.bin/calendar/
H A Dio.c715 write(pdes[1], pw->pw_name, strlen(pw->pw_name));
717 write(pdes[1], pw->pw_name, strlen(pw->pw_name));
/freebsd-current/contrib/sendmail/src/
H A Derr.c133 struct passwd *pw; local
204 pw = sm_getpwuid(RealUid);
205 if (pw != NULL)
206 user = pw->pw_name;
H A Dreadcf.c1742 struct passwd *pw; local
1761 pw = sm_getpwnam(q);
1762 if (pw == NULL)
1769 m->m_uid = pw->pw_uid;
1770 m->m_gid = pw->pw_gid;
3824 register struct passwd *pw; local
3827 pw = sm_getpwnam(val);
3828 if (pw == NULL)
3835 DefUid = pw->pw_uid;
3836 DefGid = pw
4159 register struct passwd *pw; local
4366 register struct passwd *pw; local
[all...]
/freebsd-current/usr.sbin/rwhod/
H A Drwhod.c294 struct passwd *pw; local
297 pw = getpwnam(UNPRIV_USER);
298 if (pw == NULL) {
302 *uid = pw->pw_uid;
/freebsd-current/contrib/tcpdump/
H A Dtcpdump.c780 struct passwd *pw = NULL; local
785 pw = getpwnam(username);
786 if (pw) {
794 int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG);
801 if (initgroups(pw->pw_name, pw->pw_gid) != 0 ||
802 setgid(pw->pw_gid) != 0 || setuid(pw->pw_uid) != 0)
805 (unsigned long)pw
[all...]
/freebsd-current/tests/sys/fs/fusefs/
H A Dutils.cc558 struct passwd *pw; local
565 pw = getpwnam("tests");
566 if (pw == NULL) {
568 pw = getpwnam("nobody");
570 if (pw == NULL)
576 *uid = pw->pw_uid;

Completed in 215 milliseconds

1234567891011>>