scd: Increase the number of supported readers from 4 to 16.

--

The limit on 4 readers I introduced in 2003 is too low for some of our
use cases.  16 looks better.   TODO: Return a useful error message in
gpg-card if the limit has been reached.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2020-09-04 12:51:54 +02:00
parent 65eb156980
commit 0e721b635d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,8 @@ struct dev_list {
int idx_max;
};
#define MAX_READER 4 /* Number of readers we support concurrently. */
#define MAX_READER 16 /* Number of readers we support concurrently. */
/* See also MAX_DEVICE in ccid-driver.c. */
#if defined(_WIN32) || defined(__CYGWIN__)

View File

@ -1277,7 +1277,7 @@ ccid_vendor_specific_init (ccid_driver_t handle)
}
#define MAX_DEVICE 4 /* See MAX_READER in apdu.c. */
#define MAX_DEVICE 16 /* See MAX_READER in apdu.c. */
struct ccid_dev_table {
int n; /* Index to ccid_usb_dev_list */