diff options
author | jsing <> | 2020-01-23 10:48:37 +0000 |
---|---|---|
committer | jsing <> | 2020-01-23 10:48:37 +0000 |
commit | f6cad3f00ad53e59ae0066a0554855dba18b6a13 (patch) | |
tree | fc0b264c41bd1793ca0cfd4f15cda240d52a7e3d /src/lib/libssl/d1_clnt.c | |
parent | 85e965e5bb7032fbd27630aa6a1a8480f17ada47 (diff) | |
download | openbsd-f6cad3f00ad53e59ae0066a0554855dba18b6a13.tar.gz openbsd-f6cad3f00ad53e59ae0066a0554855dba18b6a13.tar.bz2 openbsd-f6cad3f00ad53e59ae0066a0554855dba18b6a13.zip |
Remove the ssl_get_message function pointer from SSL_METHOD_INTERNAL.
ssl_get_message is essentially a switch between ssl3_get_message and
dtls1_get_message, both only used by the legacy stack. Instead, use
SSL_IS_DTLS() in ssl3_get_message to call the DTLS function when
necessary.
ok beck@ inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/d1_clnt.c')
-rw-r--r-- | src/lib/libssl/d1_clnt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index ee21a1bebc..b660589d06 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/lib/libssl/d1_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_clnt.c,v 1.82 2018/11/05 05:45:15 jsing Exp $ */ | 1 | /* $OpenBSD: d1_clnt.c,v 1.83 2020/01/23 10:48:37 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. |
@@ -136,9 +136,8 @@ dtls1_get_hello_verify(SSL *s) | |||
136 | uint16_t ssl_version; | 136 | uint16_t ssl_version; |
137 | CBS hello_verify_request, cookie; | 137 | CBS hello_verify_request, cookie; |
138 | 138 | ||
139 | n = s->method->internal->ssl_get_message(s, DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A, | 139 | n = ssl3_get_message(s, DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A, |
140 | DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B, -1, s->internal->max_cert_list, &ok); | 140 | DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B, -1, s->internal->max_cert_list, &ok); |
141 | |||
142 | if (!ok) | 141 | if (!ok) |
143 | return ((int)n); | 142 | return ((int)n); |
144 | 143 | ||