OpenSC / libp11

PKCS#11 wrapper library
GNU Lesser General Public License v2.1
310 stars 189 forks source link

lost the last char of pin code, if read from pin-source #516

Closed neterror closed 8 months ago

neterror commented 1 year ago

If the PIN code length is 32 and it is read from file using pin-source token in the URI, then its last character is cut. The function BIO_gets(..., size) reads maximum length size-1, which changes the PIN size to 31.