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
This commit is contained in:
parent
36705f8f10
commit
cae16b6ef8
|
@ -225,8 +225,8 @@ static void load_reader_driver_options(sc_context_t *ctx)
|
||||||
struct sc_reader_driver *driver = ctx->reader_driver;
|
struct sc_reader_driver *driver = ctx->reader_driver;
|
||||||
scconf_block *conf_block = NULL;
|
scconf_block *conf_block = NULL;
|
||||||
|
|
||||||
driver->max_send_size = SC_DEFAULT_MAX_SEND_SIZE;
|
driver->max_send_size = 0;
|
||||||
driver->max_recv_size = SC_DEFAULT_MAX_RECV_SIZE;
|
driver->max_recv_size = 0;
|
||||||
|
|
||||||
conf_block = sc_get_conf_block(ctx, "reader_driver", driver->name, 1);
|
conf_block = sc_get_conf_block(ctx, "reader_driver", driver->name, 1);
|
||||||
|
|
||||||
|
|
|
@ -40,11 +40,6 @@ typedef unsigned char u8;
|
||||||
#define SC_MAX_PATH_SIZE 16
|
#define SC_MAX_PATH_SIZE 16
|
||||||
#define SC_MAX_PATH_STRING_SIZE (SC_MAX_PATH_SIZE * 2 + 1)
|
#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
|
/* When changing this value, pay attention to the initialization of the ASN1
|
||||||
* static variables that use this macro, like, for example,
|
* static variables that use this macro, like, for example,
|
||||||
* 'c_asn1_supported_algorithms' in src/libopensc/pkcs15.c
|
* 'c_asn1_supported_algorithms' in src/libopensc/pkcs15.c
|
||||||
|
|
Loading…
Reference in New Issue