]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/p_lib.c
Add evp_keymgmt_clear_pkey_cache() and use it
[thirdparty/openssl.git] / crypto / evp / p_lib.c
index c6ebfe6462d01ea5284ff9d4d34aeb2699010f54..653693e1dce0de1f356d349d25233f6a9fc9f8c3 100644 (file)
@@ -613,6 +613,9 @@ void EVP_PKEY_free(EVP_PKEY *x)
 static void EVP_PKEY_free_it(EVP_PKEY *x)
 {
     /* internal function; x is never NULL */
+
+    evp_keymgmt_clear_pkey_cache(x);
+
     if (x->ameth && x->ameth->pkey_free) {
         x->ameth->pkey_free(x);
         x->pkey.ptr = NULL;