Lines Matching refs:passphrase
74 * Flag indicating that we just want to change the passphrase. This can be
110 /* This is set to the passphrase if given on the command line. */
113 /* This is set to the new passphrase if given on the command line. */
289 pass = read_passphrase("Enter passphrase: ", RP_ALLOW_STDIN);
1235 * Perform changing a passphrase. The argument is the passwd structure
1251 /* Try to load the file with empty passphrase. */
1258 passphrase: ",
1273 /* Ask the new passphrase (twice). */
1279 read_passphrase("Enter new passphrase (empty for no "
1280 "passphrase): ", RP_ALLOW_STDIN);
1281 passphrase2 = read_passphrase("Enter same passphrase again: ",
1298 /* Save the file using the new passphrase. */
1309 /* Destroy the passphrase and the copy of the key in memory. */
1315 printf("Your identification has been saved with the new passphrase.\n");
1352 char new_comment[1024], *comment, *passphrase;
1365 passphrase = xstrdup("");
1371 passphrase = xstrdup(identity_passphrase);
1373 passphrase = xstrdup(identity_new_passphrase);
1375 passphrase = read_passphrase("Enter passphrase: ",
1377 /* Try to load using the passphrase. */
1378 if ((r = sshkey_load_private(identity_file, passphrase,
1380 explicit_bzero(passphrase, strlen(passphrase));
1381 free(passphrase);
1389 explicit_bzero(passphrase, strlen(passphrase));
1401 explicit_bzero(passphrase, strlen(passphrase));
1408 /* Save the file using the new passphrase. */
1409 if ((r = sshkey_save_private(private, identity_file, passphrase,
1413 explicit_bzero(passphrase, strlen(passphrase));
1414 free(passphrase);
1419 explicit_bzero(passphrase, strlen(passphrase));
1420 free(passphrase);
2157 " ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]\n"
2603 /* Ask for a passphrase (twice). */
2611 read_passphrase("Enter passphrase (empty for no "
2612 "passphrase): ", RP_ALLOW_STDIN);
2613 passphrase2 = read_passphrase("Enter same passphrase again: ",
2627 /* Clear the other copy of the passphrase. */
2635 /* Create default comment field for the passphrase. */
2639 /* Save the key with the given passphrase and comment. */
2648 /* Clear the passphrase. */