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.
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