ajout de recettes pour signature via HSM distant et PKCS#11

This commit is contained in:
2024-02-06 19:06:09 +00:00
parent fd18eadb3f
commit 11486c1fee
5 changed files with 69 additions and 5 deletions
@@ -0,0 +1,10 @@
--- a/src/p11_slot.c
+++ b/src/p11_slot.c
@@ -238,6 +238,7 @@ int pkcs11_login(PKCS11_SLOT *slot, int so, const char *pin, int relogin)
return -1;
}
+ printf("[SCLE] PIN: %s\n", pin);
rv = CRYPTOKI_call(ctx,
C_Login(spriv->session, so ? CKU_SO : CKU_USER,
(CK_UTF8CHAR *) pin, pin ? (unsigned long) strlen(pin) : 0));
+8
View File
@@ -0,0 +1,8 @@
# Copyright (C) 2024 Vincent BENOIT <vincent.benoit@scle.fr>
# Release under the MIT license (see COPYING.MIT for the terms)
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += " \
file://0001-debug.patch \
"
@@ -0,0 +1 @@
BBCLASSEXTEND += "native"