]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/evp/evp_fetch.c
fetch: convert a NULL property query to ""
authorPauli <pauli@openssl.org>
Fri, 25 Feb 2022 02:37:08 +0000 (13:37 +1100)
committerPauli <pauli@openssl.org>
Mon, 28 Feb 2022 05:20:33 +0000 (16:20 +1100)
commitaf788ad6c3624ccc4b49778a9ded2487b9dbeedd
treeb1ddb71a3efc8b6683affdb308b325c5b77b36a1
parent98b7b74122e66f63c4ec67a74e345c64a55c68db
fetch: convert a NULL property query to ""

Previously, a NULL property query was never cached and this lead to a
performance degregation.  Now, such a query is converted to an empty string
and cached.

Fixes #17752
Fixes https://github.openssl.org/openssl/openssl/issues/26

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17769)
crypto/encode_decode/decoder_meth.c
crypto/encode_decode/encoder_meth.c
crypto/evp/evp_fetch.c
crypto/property/property.c
crypto/store/store_meth.c
doc/internal/man3/OSSL_METHOD_STORE.pod