[Pcsclite-muscle] Insufficient buffer error message

Ludovic Rousseau ludovic.rousseau
Tue Dec 11 06:39:45 PST 2012


2012/12/11 Iulian Roman <iulian.roman at gmail.com>:
>
> Hi Ludovic,
>
> On Tue, Dec 11, 2012 at 1:45 PM, Ludovic Rousseau
> <ludovic.rousseau at gmail.com> wrote:
>>
>> 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?
>
>
> rdesktop
>
>>
>>
>> > 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.
>
>
> Is it possible to change  that limit ?

The limit is given by the application.
In this case rdesktop is giving a too short buffer.

Unless the problem is elsewhere...

-- 
 Dr. Ludovic Rousseau




More information about the pcsclite-muscle mailing list