From: Jorge Ramirez-O. <no...@gi...> - 2023-04-26 07:39:00
|
Branch: refs/heads/master Home: https://github.com/OpenSC/libp11 Commit: e86eb16bd6266565c0d27abf0d549038f5ae578d https://github.com/OpenSC/libp11/commit/e86eb16bd6266565c0d27abf0d549038f5ae578d Author: Jorge Ramirez-Ortiz <jo...@fo...> Date: 2023-04-26 (Wed, 26 Apr 2023) Changed paths: M src/p11_slot.c Log Message: ----------- slot: fix token initialization The current interface accepts a string as the token label. The specification however specifies that the label must point to a 32-byte memory location, which MUST be padded with blank characters and which MUST not be null-terminated. This fix allows using libp11 with libtpm2_pkcs11 since the TPM pkcs#11 implementation does enforce the requirement (libsofthsm does not). Signed-off-by: Jorge Ramirez-Ortiz <jo...@fo...> |