Lines Matching refs:passphrase

64  * Flag indicating that we just want to change the passphrase.  This can be
97 /* This is set to the passphrase if given on the command line. */
100 /* This is set to the new passphrase if given on the command line. */
267 pass = read_passphrase("Enter passphrase: ",
1233 * Perform changing a passphrase. The argument is the passwd structure
1250 /* Try to load the file with empty passphrase. */
1257 read_passphrase("Enter old passphrase: ",
1264 printf("Bad passphrase.\n");
1270 /* Ask the new passphrase (twice). */
1276 read_passphrase("Enter new passphrase (empty for no "
1277 "passphrase): ", RP_ALLOW_STDIN);
1278 passphrase2 = read_passphrase("Enter same passphrase again: ",
1295 /* Save the file using the new passphrase. */
1305 /* Destroy the passphrase and the copy of the key in memory. */
1311 printf("Your identification has been saved with the new passphrase.\n");
1353 char new_comment[1024], *comment, *passphrase;
1369 passphrase = xstrdup(identity_passphrase);
1371 passphrase = xstrdup(identity_new_passphrase);
1373 passphrase = read_passphrase("Enter passphrase: ",
1375 /* Try to load using the passphrase. */
1376 private = key_load_private(identity_file, passphrase, &comment);
1378 explicit_bzero(passphrase, strlen(passphrase));
1379 free(passphrase);
1380 printf("Bad passphrase.\n");
1384 passphrase = xstrdup("");
1399 explicit_bzero(passphrase, strlen(passphrase));
1406 /* Save the file using the new passphrase. */
1407 if (!key_save_private(private, identity_file, passphrase, new_comment,
1410 explicit_bzero(passphrase, strlen(passphrase));
1411 free(passphrase);
1416 explicit_bzero(passphrase, strlen(passphrase));
1417 free(passphrase);
2180 fprintf(stderr, " -N phrase Provide new passphrase.\n");
2184 fprintf(stderr, " -P phrase Provide old passphrase.\n");
2185 fprintf(stderr, " -p Change passphrase of private key file.\n");
2618 /* Ask for a passphrase (twice). */
2626 read_passphrase("Enter passphrase (empty for no "
2627 "passphrase): ", RP_ALLOW_STDIN);
2628 passphrase2 = read_passphrase("Enter same passphrase again: ",
2642 /* Clear the other copy of the passphrase. */
2650 /* Create default comment field for the passphrase. */
2654 /* Save the key with the given passphrase and comment. */
2662 /* Clear the passphrase. */