[Pcsclite-muscle] Insufficient buffer error message

Ludovic Rousseau ludovic.rousseau
Tue Dec 11 04:45:33 PST 2012


2012/12/11 Iulian Roman <iulian.roman at gmail.com>:
> Hi everybody,

Hello,

> I am successfully using pcsc-lite with rdesktop to authenticate vis smart
> card to some windows TS. The issue i encountered is that for a specific type
> of card (which is recognized by pcsc correctly) i get the following error
> after i type the PIN:
>
> SCardGetAttrib Failure: Insufficient buffer

What application is returning this error?

> Did anyone experience the same issue, or does have any idea how  can it be
> fixed ?

SCardGetAttrib() uses a buffer and a buffer size to store the result. See [1].
If the buffer size is too small then you get the error.

Bye

[1] http://pcsclite.alioth.debian.org/api/group__API.html#gaacfec51917255b7a25b94c5104961602

-- 
 Dr. Ludovic Rousseau




More information about the pcsclite-muscle mailing list