bug fix of pw1 lifetime

This commit is contained in:
NIIBE Yutaka
2010-11-30 12:50:28 +09:00
parent f67604e7ba
commit 27543cfeca
2 changed files with 3 additions and 1 deletions

View File

@@ -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.

View File

@@ -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 ();