]> git.ipfire.org Git - thirdparty/openssl.git/commit
rsa: Accept NULL OAEP label for backward compatibility
authorDaiki Ueno <dueno@redhat.com>
Mon, 16 Oct 2023 05:42:12 +0000 (14:42 +0900)
committerTomas Mraz <tomas@openssl.org>
Wed, 18 Oct 2023 14:25:25 +0000 (16:25 +0200)
commit21b98da9d80c561b6273b0c51c259196d6740e70
tree26a79008f52bd8ee1748460590087e12c8e73b9b
parent410c80dc7bf2085167553ab9fa517189eed2b3a6
rsa: Accept NULL OAEP label for backward compatibility

According to the manual page, EVP_PKEY_CTX_set0_rsa_oaep_label()
should accept NULL as the label argument, though the function
currently rejects it while setting the corresponding octet string
parameter with OSSL_PARAM_construct_octet_string, which expects
non-NULL input.  This adds a workaround to the caller for backward
compatibility.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22397)
crypto/rsa/rsa_lib.c
test/evp_extra_test.c