- Removed the last goof I made

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@688 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
jey 2002-08-21 10:34:08 +00:00
parent d38851b9e4
commit 2569daf431
1 changed files with 1 additions and 4 deletions

View File

@ -174,10 +174,7 @@ int sc_pkcs15_verify_pin(struct sc_pkcs15_card *p15card,
len = pin->stored_length;
if (!(pin->flags & SC_PKCS15_PIN_FLAG_NEEDS_PADDING))
len = pinlen;
ref = pin->reference & 0x1f;
if ((pin->flags & SC_PKCS15_PIN_FLAG_LOCAL))
ref |= 0x80;
r = sc_verify(card, SC_AC_CHV, ref,
r = sc_verify(card, SC_AC_CHV, pin->reference,
pinbuf, len, &pin->tries_left);
memset(pinbuf, 0, pinlen);
sc_unlock(card);