summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorjsing <>2021-06-11 17:29:48 +0000
committerjsing <>2021-06-11 17:29:48 +0000
commitc29106da26ba83d9f0dec29e9b66d329ad964c38 (patch)
tree9ed8ed1745db8d4d214ef9607fadbd3644769e1a /src/lib/libssl/d1_both.c
parent8eb08269b2394f412e06e5fe98f463c2291efe8a (diff)
downloadopenbsd-c29106da26ba83d9f0dec29e9b66d329ad964c38.tar.gz
openbsd-c29106da26ba83d9f0dec29e9b66d329ad964c38.tar.bz2
openbsd-c29106da26ba83d9f0dec29e9b66d329ad964c38.zip
Only use SSL_AD_* internally.
Due to hysterical raisins there are three different types of defines for alerts. SSL3_AD_* are from SSLv3, TLS1_AD_* are from TLSv1.0 onwards and SSL_AD_* currently map to either an SSL3_AD_* or TLS1_AD_* define. Currently, all three of these are used in various places - switch to using just SSL_AD_* values internally, as a first step in cleaning this up. ok tb@
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 8e734f1277..52189128c8 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.74 2021/06/11 11:29:44 jsing Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.75 2021/06/11 17:29:48 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -841,7 +841,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok)
841 * handshake to fail 841 * handshake to fail
842 */ 842 */
843 if (i != (int)frag_len) { 843 if (i != (int)frag_len) {
844 al = SSL3_AD_ILLEGAL_PARAMETER; 844 al = SSL_AD_ILLEGAL_PARAMETER;
845 SSLerror(s, SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER); 845 SSLerror(s, SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER);
846 goto fatal_err; 846 goto fatal_err;
847 } 847 }