use two slots by default

This commit is contained in:
Frank Morgner
2015-05-18 06:39:20 +02:00
parent 70e72f8c14
commit f3dc6db045

View File

@@ -31,11 +31,9 @@
#include <stdlib.h>
#include <string.h>
/* pcscd allows at most 16 readers. We will use 10.
* See PCSCLITE_MAX_READERS_CONTEXTS in pcsclite.h */
#define VICC_MAX_SLOTS \
(PCSCLITE_MAX_READERS_CONTEXTS > 6 ? \
PCSCLITE_MAX_READERS_CONTEXTS-6 : 1)
/* pcscd allows at most 16 readers. Apple's SmartCardServices on OS X 10.10
* freaks out if more than 8 slots are registered. We want only two slots... */
#define VICC_MAX_SLOTS (2 <= PCSCLITE_MAX_READERS_CONTEXTS ? 2 : PCSCLITE_MAX_READERS_CONTEXTS)
const unsigned char vicc_max_slots = VICC_MAX_SLOTS;
#ifdef HAVE_DEBUGLOG_H