]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix the generic EVP algorithm fetch to actually cache them
authorRichard Levitte <levitte@openssl.org>
Thu, 18 Apr 2019 10:23:21 +0000 (12:23 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 19 Apr 2019 08:23:59 +0000 (10:23 +0200)
commite019da7b6ff54822e307daf804f7fe78ec352457
tree77647f0e5688085e808cf67c6ac6ce71f9ba7668
parent4f29f3a29b8b416a501c7166dbbca5284b198f81
Fix the generic EVP algorithm fetch to actually cache them

ossl_method_store_cache_get() and ossl_method_store_cache_set() were
called with a NULL argument for store, which means no caching is
done.  Give them a real store instead.

Also, increment the refcount when we do get a method out of the cache.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8781)
crypto/evp/evp_fetch.c