openssl/ssl
Neil Horman 6f22bcd631 Add appropriate NULL checks in EVP_CIPHER api
The EVP_CIPHER api currently assumes that calls made into several APIs
have already initalized the cipher in a given context via a call to
EVP_CipherInit[_ex[2]].  If that hasnt been done, instead of an error,
the result is typically a SIGSEGV.

Correct that by adding missing NULL checks in the apropriate apis prior
to using ctx->cipher

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22995)
2024-01-25 08:27:53 -05:00
..
quic QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
record Add appropriate NULL checks in EVP_CIPHER api 2024-01-25 08:27:53 -05:00
statem Move increment of dtls epoch to change cipher state function 2024-01-18 12:48:46 +01:00
bio_ssl.c QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
build.info
d1_lib.c Move freeing of an old record layer to dtls1_clear_sent_buffer 2023-11-21 13:09:28 +01:00
d1_msg.c
d1_srtp.c
event_queue.c
methods.c
pqueue.c
priority_queue.c Fix bug in priority queue remove function 2023-11-08 11:09:12 +00:00
s3_enc.c Add appropriate NULL checks in EVP_CIPHER api 2024-01-25 08:27:53 -05:00
s3_lib.c Simplify ssl protocol version comparisons. 2024-01-03 15:55:17 +00:00
s3_msg.c
ssl_asn1.c
ssl_cert_comp.c
ssl_cert_table.h Make ssl_cert_info read-only 2023-11-27 07:51:33 +00:00
ssl_cert.c Make ssl_cert_info read-only 2023-11-27 07:51:33 +00:00
ssl_ciph.c Add appropriate NULL checks in EVP_CIPHER api 2024-01-25 08:27:53 -05:00
ssl_conf.c Consolidate raising errors in SSL_CONF_cmd() 2023-12-19 12:03:02 +01:00
ssl_err_legacy.c
ssl_err.c QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
ssl_init.c
ssl_lib.c QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
ssl_local.h QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
ssl_mcnf.c Consolidate raising errors in SSL_CONF_cmd() 2023-12-19 12:03:02 +01:00
ssl_rsa_legacy.c
ssl_rsa.c
ssl_sess.c
ssl_stat.c
ssl_txt.c
ssl_utst.c
sslerr.h QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
t1_enc.c Move increment of dtls epoch to change cipher state function 2024-01-18 12:48:46 +01:00
t1_lib.c Simplify ssl protocol version comparisons. 2024-01-03 15:55:17 +00:00
t1_trce.c IANA has assigned numbers for 2 hybrid PQ KEX widely used in tests 2023-11-24 11:40:36 +01:00
tls13_enc.c
tls_depr.c
tls_srp.c