search for: old_passphrase

Displaying 3 results from an estimated 3 matches for "old_passphrase".

2019 Aug 06
2
[PATCH v2] Remove sshkey_load_private()
...the file with empty passphrase. */ - r = sshkey_load_private(identity_file, "", &private, &comment); + r = sshkey_load_private_type(KEY_UNSPEC, identity_file, "", + &private, &comment); if (r == SSH_ERR_KEY_WRONG_PASSPHRASE) { if (identity_passphrase) old_passphrase = xstrdup(identity_passphrase); @@ -1357,8 +1359,8 @@ do_change_passphrase(struct passwd *pw) old_passphrase = read_passphrase("Enter old passphrase: ", RP_ALLOW_STDIN); - r = sshkey_load_private(identity_file, old_passphrase, - &private, &comment); + r...
2003 Nov 27
2
Question about adding another parameter for OpenSSH
...; } @@ -560,7 +560,7 @@ exit(1); } /* Try to load the file with empty passphrase. */ - private = key_load_private(identity_file, "", &comment); + private = key_load_private(identity_file, "", &comment, 0); if (private == NULL) { if (identity_passphrase) old_passphrase = xstrdup(identity_passphrase); @@ -569,7 +569,7 @@ read_passphrase("Enter old passphrase: ", RP_ALLOW_STDIN); private = key_load_private(identity_file, old_passphrase, - &comment); + &comment, 0); memset(old_passphrase, 0, strlen(old_passphrase));...
2020 Apr 25
2
[PATCH 1/3] Add private key protection information extraction to ssh-keygen
...with empty passphrase. */ -?? ?r = sshkey_load_private(identity_file, "", &private, &comment); +?? ?r = sshkey_load_private(identity_file, "", &private, &comment, NULL); ??? ?if (r == SSH_ERR_KEY_WRONG_PASSPHRASE) { ??? ??? ?if (identity_passphrase) ??? ??? ??? ?old_passphrase = xstrdup(identity_passphrase); @@ -1425,7 +1441,7 @@ do_change_passphrase(struct passwd *pw) ??? ??? ??? ???? read_passphrase("Enter old passphrase: ", ??? ??? ??? ???? RP_ALLOW_STDIN); ??? ??? ?r = sshkey_load_private(identity_file, old_passphrase, -?? ??? ???? &private, &commen...