Home | History | Annotate | Download | only in openssh

Lines Matching defs:passphrase

61  * Flag indicating that we just want to change the passphrase.  This can be
94 /* This is set to the passphrase if given on the command line. */
97 /* This is set to the new passphrase if given on the command line. */
247 pass = read_passphrase("Enter passphrase: ",
1174 * Perform changing a passphrase. The argument is the passwd structure
1191 /* Try to load the file with empty passphrase. */
1198 read_passphrase("Enter old passphrase: ",
1205 printf("Bad passphrase.\n");
1211 /* Ask the new passphrase (twice). */
1217 read_passphrase("Enter new passphrase (empty for no "
1218 "passphrase): ", RP_ALLOW_STDIN);
1219 passphrase2 = read_passphrase("Enter same passphrase again: ",
1236 /* Save the file using the new passphrase. */
1245 /* Destroy the passphrase and the copy of the key in memory. */
1251 printf("Your identification has been saved with the new passphrase.\n");
1293 char new_comment[1024], *comment, *passphrase;
1309 passphrase = xstrdup(identity_passphrase);
1311 passphrase = xstrdup(identity_new_passphrase);
1313 passphrase = read_passphrase("Enter passphrase: ",
1315 /* Try to load using the passphrase. */
1316 private = key_load_private(identity_file, passphrase, &comment);
1318 memset(passphrase, 0, strlen(passphrase));
1319 xfree(passphrase);
1320 printf("Bad passphrase.\n");
1324 passphrase = xstrdup("");
1339 memset(passphrase, 0, strlen(passphrase));
1346 /* Save the file using the new passphrase. */
1347 if (!key_save_private(private, identity_file, passphrase, new_comment)) {
1349 memset(passphrase, 0, strlen(passphrase));
1350 xfree(passphrase);
1355 memset(passphrase, 0, strlen(passphrase));
1356 xfree(passphrase);
1891 passphrase.\n");
1894 fprintf(stderr, " -P phrase Provide old passphrase.\n");
1895 fprintf(stderr, " -p Change passphrase of private key file.\n");
2284 /* Ask for a passphrase (twice). */
2292 read_passphrase("Enter passphrase (empty for no "
2293 "passphrase): ", RP_ALLOW_STDIN);
2294 passphrase2 = read_passphrase("Enter same passphrase again: ",
2308 /* Clear the other copy of the passphrase. */
2316 /* Create default comment field for the passphrase. */
2320 /* Save the key with the given passphrase and comment. */
2327 /* Clear the passphrase. */