From cae16b6ef8c44531a190a639d9ac54fb3ca8efde Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 13 Sep 2010 07:40:45 +0000 Subject: [PATCH] By default the reader driver does not have receive/send limitations. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4714 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/ctx.c | 4 ++-- src/libopensc/types.h | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/libopensc/ctx.c b/src/libopensc/ctx.c index 8fa32039..75e81f5a 100644 --- a/src/libopensc/ctx.c +++ b/src/libopensc/ctx.c @@ -225,8 +225,8 @@ static void load_reader_driver_options(sc_context_t *ctx) struct sc_reader_driver *driver = ctx->reader_driver; scconf_block *conf_block = NULL; - driver->max_send_size = SC_DEFAULT_MAX_SEND_SIZE; - driver->max_recv_size = SC_DEFAULT_MAX_RECV_SIZE; + driver->max_send_size = 0; + driver->max_recv_size = 0; conf_block = sc_get_conf_block(ctx, "reader_driver", driver->name, 1); diff --git a/src/libopensc/types.h b/src/libopensc/types.h index 3c21a661..54ad2494 100644 --- a/src/libopensc/types.h +++ b/src/libopensc/types.h @@ -40,11 +40,6 @@ typedef unsigned char u8; #define SC_MAX_PATH_SIZE 16 #define SC_MAX_PATH_STRING_SIZE (SC_MAX_PATH_SIZE * 2 + 1) -/* default max_send_size/max_recv_size */ -/* GPK rounds down to a multiple of 4, other driver have their own limits */ -#define SC_DEFAULT_MAX_SEND_SIZE 255 -#define SC_DEFAULT_MAX_RECV_SIZE 256 - /* When changing this value, pay attention to the initialization of the ASN1 * static variables that use this macro, like, for example, * 'c_asn1_supported_algorithms' in src/libopensc/pkcs15.c