Avoids sending alert after orderly connection close Resolves: rhbz#1952901, rhbz#1903209 Signed-off-by: Sahana Prasad <sahana@redhat.com>epel8
parent
eeabdb936d
commit
ef962954ab
@ -0,0 +1,12 @@
|
||||
diff -up openssl-3.0.0-alpha16/ssl/s3_msg.c.shut-down openssl-3.0.0-alpha16/ssl/s3_msg.c
|
||||
--- openssl-3.0.0-alpha16/ssl/s3_msg.c.shut-down 2021-05-17 11:11:11.050702699 +0200
|
||||
+++ openssl-3.0.0-alpha16/ssl/s3_msg.c 2021-05-17 11:12:37.741526784 +0200
|
||||
@@ -52,6 +52,8 @@ int ssl3_send_alert(SSL *s, int level, i
|
||||
* protocol_version alerts */
|
||||
if (desc < 0)
|
||||
return -1;
|
||||
+ if (s->shutdown & SSL_SENT_SHUTDOWN && desc != SSL_AD_CLOSE_NOTIFY)
|
||||
+ return -1;
|
||||
/* If a fatal one, remove from cache */
|
||||
if ((level == SSL3_AL_FATAL) && (s->session != NULL))
|
||||
SSL_CTX_remove_session(s->session_ctx, s->session);
|
@ -1,16 +0,0 @@
|
||||
diff -up openssl-3.0.0-alpha13/test/evp_extra_test.c.diff openssl-3.0.0-alpha13/test/evp_extra_test.c
|
||||
--- openssl-3.0.0-alpha13/test/evp_extra_test.c.diff 2021-04-01 17:59:42.096566581 +0200
|
||||
+++ openssl-3.0.0-alpha13/test/evp_extra_test.c 2021-04-01 18:21:38.433182330 +0200
|
||||
@@ -2415,8 +2415,11 @@ err:
|
||||
|
||||
#ifndef OPENSSL_NO_EC
|
||||
static int ecpub_nids[] = { NID_brainpoolP256r1, NID_X9_62_prime256v1,
|
||||
- NID_secp384r1, NID_secp521r1, NID_sect233k1, NID_sect233r1, NID_sect283r1,
|
||||
+ NID_secp384r1, NID_secp521r1,
|
||||
+#ifndef OPENSSL_NO_EC2M
|
||||
+ NID_sect233k1, NID_sect233r1, NID_sect283r1,
|
||||
NID_sect409k1, NID_sect409r1, NID_sect571k1, NID_sect571r1,
|
||||
+#endif
|
||||
NID_brainpoolP384r1, NID_brainpoolP512r1};
|
||||
|
||||
static int test_ecpub(int idx)
|
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
SHA512 (openssl-3.0.0-hobbled.tar.xz) = aeb95ea4781cf18d61150abe2e8307d4985928b0385170da62504eaf30370d3a564642028b362c4bc366acffa043c3f136d67bd2401719bb3c2cdf79a86511ba
|
||||
SHA512 (openssl-3.0.0-hobbled.tar.xz) = fa5e40d22f0358b39d8eb47ee675e91ad88a93a5234dab12b27ec19c455a701042a3a70541fee1ba7ee28dbbca6024e84deb5b2fa6cc7e773374ea1e067a1b80
|
||||
|
Loading…
Reference in new issue