qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot login into emulated smartcard with OpenSC because it expects


From: Thomas Huth
Subject: Re: Cannot login into emulated smartcard with OpenSC because it expects external PIN pad.
Date: Sat, 21 Sep 2019 16:05:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 21/09/2019 10.54, Andrei Borzenkov wrote:
> USB card reader emulated by QEMU announces presence of PIN pad. OpenSC
> will not request PIN from user in this case and assumes PIN is being
> entered off-band on external device. Unfortunately QEMU does not seem to
> offer PIN entry and access to card always fails.
> 
> Changing device to not announce non-existing capability fixes it and
> allows to use OpenSC framework with emulated card.
> 
> --- a/hw/usb/dev-smartcard-reader.c
> +++ b/hw/usb/dev-smartcard-reader.c
> @@ -398,7 +398,7 @@ static const uint8_t qemu_ccid_descriptor[] = {
>                       * u16 wLcdLayout; XXYY Number of lines (XX) and
> chars per
>                       * line for LCD display used for PIN entry. 0000 -
> no LCD
>                       */
> -        0x01,       /*
> +        0x00,       /*
>                       * u8  bPINSupport; 01h PIN Verification,
>                       *                  02h PIN Modification
>                       */

 Hi,

when sending patches, please make sure to include a "Signed-off-by:"
line at the end of the patch description. For details see:

 https://wiki.qemu.org/Contribute/SubmitAPatch

Thanks,
 Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]