summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_methods.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-10-03 17:54:27 +0000
committerjsing <jsing@openbsd.org>2020-10-03 17:54:27 +0000
commit58d5599b07837b5b91042703a31df04afc4f2507 (patch)
treeb120f3c401e050589a5e829ba751e8bc0fb8934e /lib/libssl/ssl_methods.c
parentReimplement the TLSv1.2 record handling for the read side. (diff)
downloadwireguard-openbsd-58d5599b07837b5b91042703a31df04afc4f2507.tar.xz
wireguard-openbsd-58d5599b07837b5b91042703a31df04afc4f2507.zip
Use TLSv1_1_enc_data instead of DTLSv1_enc_data.
DTLSv1 is TLSv1.1 over datagrams - there is no need for a separate SSL3_ENC_METHOD struct, just use TLSv1_1_enc_data and remove DTLSv1_enc_data entirely. ok tb@
Diffstat (limited to 'lib/libssl/ssl_methods.c')
-rw-r--r--lib/libssl/ssl_methods.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/ssl_methods.c b/lib/libssl/ssl_methods.c
index ff8d17af060..ddfb8dfdba2 100644
--- a/lib/libssl/ssl_methods.c
+++ b/lib/libssl/ssl_methods.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_methods.c,v 1.16 2020/09/17 15:23:29 jsing Exp $ */
+/* $OpenBSD: ssl_methods.c,v 1.17 2020/10/03 17:54:27 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -74,7 +74,7 @@ static const SSL_METHOD_INTERNAL DTLSv1_client_method_internal_data = {
.ssl_pending = ssl3_pending,
.ssl_read_bytes = dtls1_read_bytes,
.ssl_write_bytes = dtls1_write_app_data_bytes,
- .ssl3_enc = &DTLSv1_enc_data,
+ .ssl3_enc = &TLSv1_1_enc_data,
};
static const SSL_METHOD DTLSv1_client_method_data = {
@@ -113,7 +113,7 @@ static const SSL_METHOD_INTERNAL DTLSv1_method_internal_data = {
.ssl_pending = ssl3_pending,
.ssl_read_bytes = dtls1_read_bytes,
.ssl_write_bytes = dtls1_write_app_data_bytes,
- .ssl3_enc = &DTLSv1_enc_data,
+ .ssl3_enc = &TLSv1_1_enc_data,
};
static const SSL_METHOD DTLSv1_method_data = {
@@ -152,7 +152,7 @@ static const SSL_METHOD_INTERNAL DTLSv1_server_method_internal_data = {
.ssl_pending = ssl3_pending,
.ssl_read_bytes = dtls1_read_bytes,
.ssl_write_bytes = dtls1_write_app_data_bytes,
- .ssl3_enc = &DTLSv1_enc_data,
+ .ssl3_enc = &TLSv1_1_enc_data,
};
static const SSL_METHOD DTLSv1_server_method_data = {