OpenSC / libp11

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

criptoki API violation. Token initialization function broken. #497

Closed ldts closed 1 year ago

ldts commented 1 year ago

The libp11 implementation violates the criptoki API passing a null terminated string as a label.

From the specification: label application-defined label, assigned during token initialization. MUST be padded with the blank character (‘ ‘). MUST NOT be null-terminated.

please check fix https://github.com/OpenSC/libp11/pull/495/commits/9f8353380068de0f5e62797f2c0fff7f3fe461b1

mtrojnar commented 1 year ago

PR #495 is already open for this issue.