Hi list,
In function pcsc_internal_transmit(src/libopensc/reader-pcsc.c 
line:173),there is limitation for dwRecvLength:

CODE_BEGIN

if (dwREcvLength > 258)
  dwRecvLength = 258;

CODE_END

I have several smart cards(T=1), which will not work with these two 
line. When be asked for RSA public key of 2048 bits, the card OS returns 
data _more than_ 256 bytes, and if dwRecvLength is too small to hold the 
data, function ScardTransmit of pcsc-lite will fail.
I'm wondering whether it will make harmful impact to other cards if we 
remove this limitation. If the answer is no, can we remove this two line?

Thank you.



-- 
Weitao Sun <wei...@ftsafe.com>
TEL:+86 010 62304466 ext. 585
FAX:+86 010 62304477

Entersafe R&D Dep.<www.entersafe.com>
Feitian Technologies Co., Ltd.<www.ftsafe.com>
5th Floor, Building 7A, No.40 Xueyuan Road
Haidian District, Beijing, P.R. China, 100083



_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to