isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

Blame SOURCES/openssl-1.1.1-cleanup-peer-point-reneg.patch

b3353e
diff -up openssl-1.1.1k/ssl/statem/extensions.c.cleanup-reneg openssl-1.1.1k/ssl/statem/extensions.c
b3353e
--- openssl-1.1.1k/ssl/statem/extensions.c.cleanup-reneg	2021-03-25 14:28:38.000000000 +0100
b3353e
+++ openssl-1.1.1k/ssl/statem/extensions.c	2021-06-24 16:16:19.526181743 +0200
b3353e
@@ -42,6 +42,7 @@ static int tls_parse_certificate_authori
b3353e
 #ifndef OPENSSL_NO_SRP
b3353e
 static int init_srp(SSL *s, unsigned int context);
b3353e
 #endif
b3353e
+static int init_ec_point_formats(SSL *s, unsigned int context);
b3353e
 static int init_etm(SSL *s, unsigned int context);
b3353e
 static int init_ems(SSL *s, unsigned int context);
b3353e
 static int final_ems(SSL *s, unsigned int context, int sent);
b3353e
@@ -158,7 +159,7 @@ static const EXTENSION_DEFINITION ext_de
b3353e
         TLSEXT_TYPE_ec_point_formats,
b3353e
         SSL_EXT_CLIENT_HELLO | SSL_EXT_TLS1_2_SERVER_HELLO
b3353e
         | SSL_EXT_TLS1_2_AND_BELOW_ONLY,
b3353e
-        NULL, tls_parse_ctos_ec_pt_formats, tls_parse_stoc_ec_pt_formats,
b3353e
+        init_ec_point_formats, tls_parse_ctos_ec_pt_formats, tls_parse_stoc_ec_pt_formats,
b3353e
         tls_construct_stoc_ec_pt_formats, tls_construct_ctos_ec_pt_formats,
b3353e
         final_ec_pt_formats
b3353e
     },
b3353e
@@ -1164,6 +1165,15 @@ static int init_srp(SSL *s, unsigned int
b3353e
 }
b3353e
 #endif
b3353e
 
b3353e
+static int init_ec_point_formats(SSL *s, unsigned int context)
b3353e
+{
b3353e
+	    OPENSSL_free(s->ext.peer_ecpointformats);
b3353e
+	    s->ext.peer_ecpointformats = NULL;
b3353e
+	    s->ext.peer_ecpointformats_len = 0;
b3353e
+
b3353e
+	    return 1;
b3353e
+}
b3353e
+
b3353e
 static int init_etm(SSL *s, unsigned int context)
b3353e
 {
b3353e
     s->ext.use_etm = 0;