bug fix of pw1 lifetime
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
(gpg_do_clear_prvkey): New function.
|
||||
* src/openpgp.c (cmd_pso, cmd_internal_authenticate): Use new API
|
||||
of rsa_sign and rsa_decrypt.
|
||||
(cmd_pso): Fixed bug of checking return value of gpg_get_pw1_lifetime.
|
||||
|
||||
* src/call-rsa.c (rsa_sign): New argument KD.
|
||||
(rsa_decrypt): Likewise.
|
||||
|
||||
|
||||
@@ -590,7 +590,7 @@ cmd_pso (void)
|
||||
}
|
||||
else
|
||||
{ /* Success */
|
||||
if (gpg_get_pw1_lifetime ())
|
||||
if (gpg_get_pw1_lifetime () == 0)
|
||||
ac_reset_pso_cds ();
|
||||
|
||||
gpg_increment_digital_signature_counter ();
|
||||
|
||||
Reference in New Issue
Block a user