Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hcrypto PKCS#11 backend: don't leak sessions on digest reinit
Clients of the EVP API can reinitialize message digest contexts without destroying them. The PKCS#11 backend assumed they were only used once, and was leaking session handles upon reinitialization. This fix disposes of any existing PKCS#11 message digest context in the initialization method. (cherry picked from commit 9518f29)
- Loading branch information