Adapt CRYPTO_secure_malloc() like CRYPTO_malloc()
authorRichard Levitte <levitte@openssl.org>
Thu, 29 Sep 2022 11:56:43 +0000 (13:56 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Oct 2022 12:02:02 +0000 (14:02 +0200)
commit9167a47f78159b0578bc032401ab1d66e14eecdb
tree546ea0d04aa9a03628e504626645cb413d7f7573
parent894f2166ef2c16d8e4533e1c09e05ff31ea2f1d8
Adapt CRYPTO_secure_malloc() like CRYPTO_malloc()

In other words, make it raise ERR_R_MALLOC_FAILURE appropriately.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19301)
crypto/mem_sec.c