Revert CardOS change from Italian CNS patch [4627].

Limiting Le for CNS should be done in pkcs15-itacns.c

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4655 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2010-08-27 08:24:39 +00:00
parent ed589feda7
commit a7191a9540
1 changed files with 1 additions and 5 deletions

View File

@ -30,8 +30,6 @@
#include "asn1.h"
#include "cardctl.h"
#define MAX_LE 240
static const struct sc_card_operations *iso_ops = NULL;
static struct sc_card_operations cardos_ops;
@ -815,9 +813,7 @@ cardos_compute_signature(sc_card_t *card, const u8 *data, size_t datalen,
SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_VERBOSE, SC_ERROR_INVALID_ARGUMENTS);
if (outlen < datalen)
SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_VERBOSE, SC_ERROR_BUFFER_TOO_SMALL);
if (outlen > MAX_LE)
outlen = MAX_LE;
outlen = datalen;
/* XXX As we don't know what operations are allowed with a
* certain key, let's try RSA_PURE etc. and see which operation