diff options
| author | jsing <> | 2021-06-11 17:29:48 +0000 |
|---|---|---|
| committer | jsing <> | 2021-06-11 17:29:48 +0000 |
| commit | 25b5c080aa64e34d31477c1bcf914d3ad678bad8 (patch) | |
| tree | 9ed8ed1745db8d4d214ef9607fadbd3644769e1a /src/lib/libssl/d1_both.c | |
| parent | 2215c5d14fb37cc4aab492e6fdbd91ccb77380f9 (diff) | |
| download | openbsd-25b5c080aa64e34d31477c1bcf914d3ad678bad8.tar.gz openbsd-25b5c080aa64e34d31477c1bcf914d3ad678bad8.tar.bz2 openbsd-25b5c080aa64e34d31477c1bcf914d3ad678bad8.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.c | 4 |
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 | } |
