verify_other should not fail with no keys, but really checks PW1

This commit is contained in:
NIIBE Yutaka
2011-12-13 11:21:45 +09:00
parent 9dcb59f6aa
commit b113e6fa7b
4 changed files with 39 additions and 31 deletions

View File

@@ -243,7 +243,7 @@ cmd_change_password (void)
{
const uint8_t *ks_pw1 = gpg_do_read_simple (NR_DO_KEYSTRING_PW1);
pw_len = verify_user_0 (pw, len, -1, ks_pw1);
pw_len = verify_user_0 (AC_PSO_CDS_AUTHORIZED, pw, len, -1, ks_pw1);
if (pw_len < 0)
{