1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05:00
curl/lib/vtls
Daniel Gustafsson 3a8cdc82dc openssl: guard against OOM on context creation
EVP_MD_CTX_create will allocate memory for the context and returns
NULL in case the allocation fails. Make sure to catch any allocation
failures and exit early if so.

In passing, also move to EVP_DigestInit rather than EVP_DigestInit_ex
as the latter is intended for ENGINE selection which we don't do.

Closes #6224
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Emil Engler <me@emilengler.com>
2020-11-19 01:40:24 +01:00
..
bearssl.c curl.se: new home 2020-11-04 23:59:47 +01:00
bearssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gskit.c curl.se: new home 2020-11-04 23:59:47 +01:00
gskit.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
gtls.c curl.se: new home 2020-11-04 23:59:47 +01:00
gtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
keylog.c curl.se: new home 2020-11-04 23:59:47 +01:00
keylog.h curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls_threadlock.c curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls_threadlock.h curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls.c curl.se: new home 2020-11-04 23:59:47 +01:00
mbedtls.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
mesalink.c curl.se: new home 2020-11-04 23:59:47 +01:00
mesalink.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
nss.c curl.se: new home 2020-11-04 23:59:47 +01:00
nssg.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
openssl.c openssl: guard against OOM on context creation 2020-11-19 01:40:24 +01:00
openssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
schannel_verify.c curl.se: new home 2020-11-04 23:59:47 +01:00
schannel.c curl.se: new home 2020-11-04 23:59:47 +01:00
schannel.h curl.se: new home 2020-11-04 23:59:47 +01:00
sectransp.c curl.se: new home 2020-11-04 23:59:47 +01:00
sectransp.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00
vtls.c curl.se: new home 2020-11-04 23:59:47 +01:00
vtls.h curl.se: new home 2020-11-04 23:59:47 +01:00
wolfssl.c curl.se: new home 2020-11-04 23:59:47 +01:00
wolfssl.h copyright: fix year ranges 2020-11-05 08:22:10 +01:00