Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for conflicting atexit() callbacks
PKCS#11 modules that register their own atexit() callbacks may already have been cleaned up by the time OpenSSL's atexit() callback is executed. As a result, a crash occurs with certain versions of OpenSSL and SoftHSM2. The workaround skips the execution of ctx_finish() during OpenSSL's cleanup, converting the crash into a harmless memory leak at exit.
- Loading branch information