[PKCS#11] use combined constants for events

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3989 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2010-02-03 10:10:43 +00:00
parent b3428a684d
commit b9f844c367
1 changed files with 2 additions and 2 deletions

View File

@ -627,11 +627,11 @@ CK_RV C_WaitForSlotEvent(CK_FLAGS flags, /* blocking/nonblocking flag */
if (rv != CKR_OK)
return rv;
mask = SC_EVENT_CARD_INSERTED|SC_EVENT_CARD_REMOVED;
mask = SC_EVENT_CARD_EVENTS;
/* Detect and add new slots for added readers v2.20 */
if (sc_pkcs11_conf.plug_and_play) {
mask |= SC_EVENT_READER_ATTACHED;
mask |= SC_EVENT_READER_EVENTS;
}
if ((rv = slot_find_changed(pSlot, mask)) == CKR_OK