You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-24 05:39:17 +03:00
PKCS#11 states for flag CKF_INTERFACE_FORK_SAFE: "The returned interface will have fork tolerant semantics. When the application forks, each process will get its own copy of all session objects, session states, login states, and encryption states. Each process will also maintain access to token objects with their previously supplied handles." This is not how Opencryptoki behaves. The forked child starts as if cryptoki has never been initialized, it needs to initialize the cryptoki library freshly with C_Initialize if needed. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>