]> git.ipfire.org Git - thirdparty/openssl.git/commit
ssl/t1_lib.c: Add checks for the EVP_MD_get_size()
authorJiasheng Jiang <jiasheng@purdue.edu>
Fri, 22 Mar 2024 19:18:34 +0000 (19:18 +0000)
committerNeil Horman <nhorman@openssl.org>
Tue, 2 Apr 2024 09:23:54 +0000 (05:23 -0400)
commit9f6a48749afdcd5f35fb671651fc6af2b0b7d97a
tree38f0fffb600d961aefdef15584b271d21c17163d
parent68d6dd3354597de01e7a9534be813756004e1351
ssl/t1_lib.c: Add checks for the EVP_MD_get_size()

Add checks for the EVP_MD_get_size() to avoid unexpected negative numbers.

Fixes: b362ccab5c ("Security framework.")
Fixes: 0fe3db251a ("Use size of server key when selecting signature algorithm.")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/23943)
ssl/t1_lib.c