mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
See ChangeLog: Mon Aug 21 17:59:17 CEST 2000 Werner Koch
This commit is contained in:
parent
c9c709545a
commit
9fc2d24fdb
7 changed files with 381 additions and 0 deletions
|
@ -191,6 +191,7 @@ do_check( PKT_secret_key *sk )
|
|||
/* now let's see whether we have used the right passphrase */
|
||||
if( csum != sk->csum ) {
|
||||
copy_secret_key( sk, save_sk );
|
||||
passphrase_clear_cache ( keyid, sk->pubkey_algo );
|
||||
free_secret_key( save_sk );
|
||||
return GPGERR_BAD_PASS;
|
||||
}
|
||||
|
@ -199,6 +200,7 @@ do_check( PKT_secret_key *sk )
|
|||
res = pk_check_secret_key( sk->pubkey_algo, sk->skey );
|
||||
if( res ) {
|
||||
copy_secret_key( sk, save_sk );
|
||||
passphrase_clear_cache ( keyid, sk->pubkey_algo );
|
||||
free_secret_key( save_sk );
|
||||
return GPGERR_BAD_PASS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue