]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove redefinition of SSL_AD_NO_ALERT
authorMatt Caswell <matt@openssl.org>
Wed, 27 Jul 2022 13:54:48 +0000 (14:54 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 18 Aug 2022 15:38:14 +0000 (16:38 +0100)
The SSL_AD_NO_ALERT value was defined in two places. We centralise its
definition.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)

ssl/record/methods/tls_common.c
ssl/ssl_local.h
ssl/statem/statem.h

index d98badffe470204933d4ab89adc8c35e1ed12beb..a537db6ffd7fa3591918a5cfc23f49e5aaf9997d 100644 (file)
@@ -17,8 +17,6 @@
 #include "../record_local.h"
 #include "recmethod_local.h"
 
-# define SSL_AD_NO_ALERT    -1
-
 static void tls_int_free(OSSL_RECORD_LAYER *rl);
 
 void ossl_rlayer_fatal(OSSL_RECORD_LAYER *rl, int al, int reason,
index 7f5c8a0ba5409a4232365dd8d663e8e7dfe03f74..38b2c7e970fe0de0b30b4765b8129e9800799e78 100644 (file)
 # define DTLS_VERSION_LT(v1, v2) (dtls_ver_ordinal(v1) > dtls_ver_ordinal(v2))
 # define DTLS_VERSION_LE(v1, v2) (dtls_ver_ordinal(v1) >= dtls_ver_ordinal(v2))
 
+# define SSL_AD_NO_ALERT    -1
 
 /*
  * Define the Bitmasks for SSL_CIPHER.algorithms.
index 7dbe71ed7d48a5cf0a92a22d72f4b1d7c41ffca9..75fb06481c0f2e219f5c1e48dd58c02e01d6f57e 100644 (file)
@@ -127,7 +127,6 @@ void ossl_statem_set_renegotiate(SSL_CONNECTION *s);
 void ossl_statem_send_fatal(SSL_CONNECTION *s, int al);
 void ossl_statem_fatal(SSL_CONNECTION *s, int al, int reason,
                        const char *fmt, ...);
-# define SSL_AD_NO_ALERT    -1
 # define SSLfatal_alert(s, al) ossl_statem_send_fatal((s), (al))
 # define SSLfatal(s, al, r) SSLfatal_data((s), (al), (r), NULL)
 # define SSLfatal_data                                          \