Lines Matching defs:pw

245 ask_filename(struct passwd *pw, const char *prompt)
289 "%s/%s", pw->pw_dir, name);
334 do_convert_to_ssh2(struct passwd *pw, struct sshkey *k)
351 pw->pw_name, hostname);
416 do_convert_to(struct passwd *pw)
423 ask_filename(pw, "Enter file in which the key is");
430 do_convert_to_ssh2(pw, k);
648 do_convert_from_ssh2(struct passwd *pw, struct sshkey **k, int *private)
769 do_convert_from(struct passwd *pw)
776 ask_filename(pw, "Enter file in which the key is");
782 do_convert_from_ssh2(pw, &k, &private);
830 do_print_public(struct passwd *pw)
838 ask_filename(pw, "Enter file in which the key is");
857 do_download(struct passwd *pw)
967 do_fingerprint(struct passwd *pw)
978 ask_filename(pw, "Enter file in which the key is");
1064 do_gen_all_hostkeys(struct passwd *pw)
1138 snprintf(comment, sizeof comment, "%s@%s", pw->pw_name,
1315 do_known_hosts(struct passwd *pw, const char *name, int find_host,
1325 cp = tilde_expand_filename(_PATH_SSH_USER_HOSTFILE, pw->pw_uid);
1422 do_change_passphrase(struct passwd *pw)
1431 ask_filename(pw, "Enter file in which the key is");
1501 do_print_resource_record(struct passwd *pw, char *fname, char *hname,
1538 do_change_comment(struct passwd *pw, const char *identity_comment)
1547 ask_filename(pw, "Enter file in which the key is");
1772 do_ca_sign(struct passwd *pw, const char *ca_key_path, int prefer_agent,
1788 tmp = tilde_expand_filename(ca_key_path, pw->pw_uid);
1856 tmp = tilde_expand_filename(argv[i], pw->pw_uid);
2179 do_show_cert(struct passwd *pw)
2191 ask_filename(pw, "Enter file in which the key is");
2286 update_krl_from_file(struct passwd *pw, const char *file, int wild_ca,
2298 path = tilde_expand_filename(file, pw->pw_uid);
2440 do_gen_krl(struct passwd *pw, int updating, const char *ca_key_path,
2464 tmp = tilde_expand_filename(ca_key_path, pw->pw_uid);
2482 update_krl_from_file(pw, argv[i], wild_ca, ca, krl);
2496 do_check_krl(struct passwd *pw, int print_krl, int argc, char **argv)
3361 struct passwd *pw;
3395 pw = getpwuid(getuid());
3396 if (!pw)
3398 pw = pwcopy(pw);
3716 do_gen_krl(pw, update_krl, ca_key_path,
3721 do_check_krl(pw, print_fingerprint, argc, argv);
3729 do_ca_sign(pw, ca_key_path, prefer_agent,
3733 do_show_cert(pw);
3735 do_known_hosts(pw, rr_hostname, find_host,
3739 do_download(pw);
3752 do_fingerprint(pw);
3754 do_change_passphrase(pw);
3756 do_change_comment(pw, identity_comment);
3759 do_convert_to(pw);
3761 do_convert_from(pw);
3767 do_print_public(pw);
3772 n = do_print_resource_record(pw, identity_file,
3779 n += do_print_resource_record(pw,
3783 n += do_print_resource_record(pw,
3787 n += do_print_resource_record(pw,
3790 n += do_print_resource_record(pw,
3793 n += do_print_resource_record(pw,
3818 do_gen_all_hostkeys(pw);
3917 ask_filename(pw, "Enter file in which to save the key");
3932 snprintf(comment, sizeof comment, "%s@%s", pw->pw_name, hostname);