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 Revise build.info 2023-03-30 11:14:17 +01:00
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 Copyright year updates 2023-09-07 09:59:15 +01:00
d1_srtp.c Copyright year updates 2023-09-07 09:59:15 +01:00
event_queue.c Remove a spurious inclusion of the sparse array header file 2023-09-25 07:45:32 +10:00
methods.c Update some inclusions of <openssl/macros.h> 2019-11-07 11:37:25 +01:00
pqueue.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
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 Resolve a TODO in ssl3_dispatch_alert 2022-11-14 10:14:41 +01:00
ssl_asn1.c RFC7250 (RPK) support 2023-03-28 13:49:54 -04:00
ssl_cert_comp.c Copyright year updates 2023-09-07 09:59:15 +01:00
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 Update copyright year 2021-06-17 13:24:59 +01:00
ssl_err.c QUIC APL: Implement optimised FIN API 2024-01-23 14:20:06 +00:00
ssl_init.c Copyright year updates 2023-09-28 14:23:29 +01:00
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 Deprecate RSA harder 2020-11-18 23:38:34 +01:00
ssl_rsa.c Copyright year updates 2023-09-07 09:59:15 +01:00
ssl_sess.c fix memory allocation and reference counting issues 2023-07-05 08:34:00 +10:00
ssl_stat.c Add support for compressed certificates (RFC8879) 2022-10-18 09:30:22 -04:00
ssl_txt.c Cast values to match printf format strings. 2022-11-14 07:47:53 +00:00
ssl_utst.c Remove the old buffer management code 2022-10-20 14:39:33 +01:00
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 Copyright year updates 2023-09-07 09:59:15 +01:00
tls_depr.c SSL object refactoring using SSL_CONNECTION object 2022-07-28 10:04:28 +01:00
tls_srp.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00