Lines Matching defs:passphrase

68  * Flag indicating that we just want to change the passphrase.  This can be
104 /* This is set to the passphrase if given on the command line. */
107 /* This is set to the new passphrase if given on the command line. */
288 pass = read_passphrase("Enter passphrase: ", RP_ALLOW_STDIN);
1240 * Perform changing a passphrase. The argument is the passwd structure
1258 /* Try to load the file with empty passphrase. */
1265 read_passphrase("Enter old passphrase: ",
1282 /* Ask the new passphrase (twice). */
1288 read_passphrase("Enter new passphrase (empty for no "
1289 "passphrase): ", RP_ALLOW_STDIN);
1290 passphrase2 = read_passphrase("Enter same passphrase again: ",
1307 /* Save the file using the new passphrase. */
1318 /* Destroy the passphrase and the copy of the key in memory. */
1324 printf("Your identification has been saved with the new passphrase.\n");
1364 char new_comment[1024], *comment, *passphrase;
1379 passphrase = xstrdup("");
1386 passphrase = xstrdup(identity_passphrase);
1388 passphrase = xstrdup(identity_new_passphrase);
1390 passphrase = read_passphrase("Enter passphrase: ",
1392 /* Try to load using the passphrase. */
1393 if ((r = sshkey_load_private(identity_file, passphrase,
1395 explicit_bzero(passphrase, strlen(passphrase));
1396 free(passphrase);
1415 explicit_bzero(passphrase, strlen(passphrase));
1422 /* Save the file using the new passphrase. */
1423 if ((r = sshkey_save_private(private, identity_file, passphrase,
1427 explicit_bzero(passphrase, strlen(passphrase));
1428 free(passphrase);
1433 explicit_bzero(passphrase, strlen(passphrase));
1434 free(passphrase);
2207 " ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]\n"
2661 /* Ask for a passphrase (twice). */
2669 read_passphrase("Enter passphrase (empty for no "
2670 "passphrase): ", RP_ALLOW_STDIN);
2671 passphrase2 = read_passphrase("Enter same passphrase again: ",
2685 /* Clear the other copy of the passphrase. */
2693 /* Create default comment field for the passphrase. */
2697 /* Save the key with the given passphrase and comment. */
2706 /* Clear the passphrase. */