summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/d1_meth.c')
-rw-r--r--src/lib/libssl/d1_meth.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/libssl/d1_meth.c b/src/lib/libssl/d1_meth.c
index 4493aa180b..fcd8906c45 100644
--- a/src/lib/libssl/d1_meth.c
+++ b/src/lib/libssl/d1_meth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_meth.c,v 1.12 2017/01/23 10:22:06 jsing Exp $ */ 1/* $OpenBSD: d1_meth.c,v 1.13 2017/01/23 13:36:13 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.
@@ -65,7 +65,7 @@
65 65
66static const SSL_METHOD *dtls1_get_method(int ver); 66static const SSL_METHOD *dtls1_get_method(int ver);
67 67
68static const SSL_METHOD DTLSv1_method_data = { 68static const SSL_METHOD_INTERNAL DTLSv1_method_internal_data = {
69 .version = DTLS1_VERSION, 69 .version = DTLS1_VERSION,
70 .min_version = DTLS1_VERSION, 70 .min_version = DTLS1_VERSION,
71 .max_version = DTLS1_VERSION, 71 .max_version = DTLS1_VERSION,
@@ -78,21 +78,25 @@ static const SSL_METHOD DTLSv1_method_data = {
78 .ssl_peek = ssl3_peek, 78 .ssl_peek = ssl3_peek,
79 .ssl_write = ssl3_write, 79 .ssl_write = ssl3_write,
80 .ssl_shutdown = dtls1_shutdown, 80 .ssl_shutdown = dtls1_shutdown,
81 .ssl_pending = ssl3_pending,
82 .get_ssl_method = dtls1_get_method,
83 .get_timeout = dtls1_default_timeout,
84 .ssl_version = ssl_undefined_void_function,
81 .ssl_renegotiate = ssl3_renegotiate, 85 .ssl_renegotiate = ssl3_renegotiate,
82 .ssl_renegotiate_check = ssl3_renegotiate_check, 86 .ssl_renegotiate_check = ssl3_renegotiate_check,
83 .ssl_get_message = dtls1_get_message, 87 .ssl_get_message = dtls1_get_message,
84 .ssl_read_bytes = dtls1_read_bytes, 88 .ssl_read_bytes = dtls1_read_bytes,
85 .ssl_write_bytes = dtls1_write_app_data_bytes, 89 .ssl_write_bytes = dtls1_write_app_data_bytes,
90 .ssl3_enc = &DTLSv1_enc_data,
91};
92
93static const SSL_METHOD DTLSv1_method_data = {
86 .ssl_dispatch_alert = dtls1_dispatch_alert, 94 .ssl_dispatch_alert = dtls1_dispatch_alert,
87 .get_cipher_by_char = ssl3_get_cipher_by_char,
88 .put_cipher_by_char = ssl3_put_cipher_by_char,
89 .ssl_pending = ssl3_pending,
90 .num_ciphers = ssl3_num_ciphers, 95 .num_ciphers = ssl3_num_ciphers,
91 .get_cipher = dtls1_get_cipher, 96 .get_cipher = dtls1_get_cipher,
92 .get_ssl_method = dtls1_get_method, 97 .get_cipher_by_char = ssl3_get_cipher_by_char,
93 .get_timeout = dtls1_default_timeout, 98 .put_cipher_by_char = ssl3_put_cipher_by_char,
94 .ssl3_enc = &DTLSv1_enc_data, 99 .internal = &DTLSv1_method_internal_data,
95 .ssl_version = ssl_undefined_void_function,
96}; 100};
97 101
98const SSL_METHOD * 102const SSL_METHOD *