Lines Matching refs:pw
142 if (PRIVSEP(user_key_allowed(authctxt->pw, key)) &&
160 if (PRIVSEP(user_key_allowed(authctxt->pw, key))) {
201 match_principals_file(char *file, struct passwd *pw, struct KeyCert *cert)
208 temporarily_use_uid(pw);
210 if ((f = auth_openprincipals(file, pw, options.strict_modes)) == NULL) {
243 if (auth_parse_options(pw, line_opts,
259 user_key_allowed2(struct passwd *pw, Key *key, char *file)
270 temporarily_use_uid(pw);
273 f = auth_openkeyfile(file, pw, options.strict_modes);
317 if (auth_parse_options(pw, key_options, file,
343 authorized_principals == NULL ? pw->pw_name : NULL,
346 if (auth_cert_options(key, pw) != 0) {
357 if (auth_parse_options(pw, key_options, file,
382 user_cert_trusted_ca(struct passwd *pw, Key *key)
406 if ((principals_file = authorized_principals_file(pw)) != NULL) {
407 if (!match_principals_file(principals_file, pw, key->cert)) {
417 principals_file == NULL ? pw->pw_name : NULL, &reason) != 0)
419 if (auth_cert_options(key, pw) != 0)
437 user_key_allowed(struct passwd *pw, Key *key)
447 success = user_cert_trusted_ca(pw, key);
453 options.authorized_keys_files[i], pw);
454 success = user_key_allowed2(pw, key, file);