Home | History | Annotate | Download | only in dist

Lines Matching defs:passphrase

95 /* This is set to the passphrase if given on the command line. */
98 /* This is set to the new passphrase if given on the command line. */
300 xasprintf(&prompt, "Enter passphrase for \"%s\": ", filename);
1339 * Perform changing a passphrase. The argument is the passwd structure
1355 /* Try to load the file with empty passphrase. */
1362 read_passphrase("Enter old passphrase: ",
1376 /* Ask the new passphrase (twice). */
1382 read_passphrase("Enter new passphrase (empty for no "
1383 "passphrase): ", RP_ALLOW_STDIN);
1384 passphrase2 = read_passphrase("Enter same passphrase again: ",
1400 /* Save the file using the new passphrase. */
1409 /* Destroy the passphrase and the copy of the key in memory. */
1414 printf("Your identification has been saved with the new passphrase.\n");
1463 char new_comment[1024], *comment, *passphrase;
1475 passphrase = xstrdup("");
1480 passphrase = xstrdup(identity_passphrase);
1482 passphrase = xstrdup(identity_new_passphrase);
1484 passphrase = read_passphrase("Enter passphrase: ",
1486 /* Try to load using the passphrase. */
1487 if ((r = sshkey_load_private(identity_file, passphrase,
1489 freezero(passphrase, strlen(passphrase));
1499 explicit_bzero(passphrase, strlen(passphrase));
1514 explicit_bzero(passphrase, strlen(passphrase));
1522 free(passphrase);
1528 /* Save the file using the new passphrase. */
1529 if ((r = sshkey_save_private(private, identity_file, passphrase,
1533 freezero(passphrase, strlen(passphrase));
1538 freezero(passphrase, strlen(passphrase));
3007 /* Read and confirm a passphrase */
3042 xasprintf(&prompt, "Enter passphrase for \"%s\" "
3043 "(empty for no passphrase): ", path);
3045 "Enter same passphrase again: ",
3232 " ssh-keygen -c [-a rounds] [-C comment] [-f keyfile] [-P passphrase]\n"
3272 char comment[1024], *passphrase = NULL;
3799 sk_user, sk_flags, passphrase, challenge,
3812 else if (passphrase != NULL) {
3814 freezero(passphrase, strlen(passphrase));
3815 passphrase = NULL;
3819 passphrase = read_passphrase("Enter PIN for "
3822 if (passphrase != NULL) {
3823 freezero(passphrase, strlen(passphrase));
3824 passphrase = NULL;
3845 /* Determine the passphrase for the private key */
3846 passphrase = private_key_passphrase(identity_file);
3850 /* Create default comment field for the passphrase. */
3854 /* Save the key with the given passphrase and comment. */
3855 if ((r = sshkey_save_private(private, identity_file, passphrase,
3858 freezero(passphrase, strlen(passphrase));
3861 freezero(passphrase, strlen(passphrase));