From f772e2a68fa06d6839dbb2472668e855a0e2be23 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Mon, 19 Apr 2010 07:46:57 +0200 Subject: [PATCH] be less strict when requiring a card --- lib/pki_scard.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pki_scard.cpp b/lib/pki_scard.cpp index 0ca25040..e51ca972 100644 --- a/lib/pki_scard.cpp +++ b/lib/pki_scard.cpp @@ -495,9 +495,7 @@ bool pki_scard::prepare_card(unsigned long *slot, bool verifyPubkey) const pkcs11 myp11; tkInfo ti = myp11.tokenInfo(p11_slots[i]); if (ti.label() == card_label && - ti.manufacturerID() == card_manufacturer && - ti.serial() == card_serial && - (card_model.isEmpty() || ti.model() == card_model)) + ti.serial() == card_serial) { break; }