diff options
author | jsing <> | 2018-11-05 05:45:15 +0000 |
---|---|---|
committer | jsing <> | 2018-11-05 05:45:15 +0000 |
commit | 2ab1af323eb2251dedee9fcb3661f284ae62b640 (patch) | |
tree | 3f0fe5c046ee4d7240d6ea15879199dca6797790 /src/lib/libssl/d1_clnt.c | |
parent | 1747118e379623d86b5f53dcc99d185f9868ce43 (diff) | |
download | openbsd-2ab1af323eb2251dedee9fcb3661f284ae62b640.tar.gz openbsd-2ab1af323eb2251dedee9fcb3661f284ae62b640.tar.bz2 openbsd-2ab1af323eb2251dedee9fcb3661f284ae62b640.zip |
Consolidate all of the SSL method structs/functions into a single file.
Discussed with tb@
Diffstat (limited to 'src/lib/libssl/d1_clnt.c')
-rw-r--r-- | src/lib/libssl/d1_clnt.c | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index 8f60f4a8c4..ee21a1bebc 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.81 2018/08/30 16:56:16 jsing Exp $ */ | 1 | /* $OpenBSD: d1_clnt.c,v 1.82 2018/11/05 05:45:15 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. |
@@ -127,49 +127,6 @@ | |||
127 | 127 | ||
128 | #include "bytestring.h" | 128 | #include "bytestring.h" |
129 | 129 | ||
130 | static const SSL_METHOD_INTERNAL DTLSv1_client_method_internal_data = { | ||
131 | .version = DTLS1_VERSION, | ||
132 | .min_version = DTLS1_VERSION, | ||
133 | .max_version = DTLS1_VERSION, | ||
134 | .ssl_new = dtls1_new, | ||
135 | .ssl_clear = dtls1_clear, | ||
136 | .ssl_free = dtls1_free, | ||
137 | .ssl_accept = ssl_undefined_function, | ||
138 | .ssl_connect = ssl3_connect, | ||
139 | .get_ssl_method = dtls1_get_client_method, | ||
140 | .get_timeout = dtls1_default_timeout, | ||
141 | .ssl_version = ssl_undefined_void_function, | ||
142 | .ssl_renegotiate = ssl3_renegotiate, | ||
143 | .ssl_renegotiate_check = ssl3_renegotiate_check, | ||
144 | .ssl_get_message = dtls1_get_message, | ||
145 | .ssl_read_bytes = dtls1_read_bytes, | ||
146 | .ssl_write_bytes = dtls1_write_app_data_bytes, | ||
147 | .ssl3_enc = &DTLSv1_enc_data, | ||
148 | }; | ||
149 | |||
150 | static const SSL_METHOD DTLSv1_client_method_data = { | ||
151 | .ssl_dispatch_alert = dtls1_dispatch_alert, | ||
152 | .num_ciphers = ssl3_num_ciphers, | ||
153 | .get_cipher = dtls1_get_cipher, | ||
154 | .get_cipher_by_char = ssl3_get_cipher_by_char, | ||
155 | .put_cipher_by_char = ssl3_put_cipher_by_char, | ||
156 | .internal = &DTLSv1_client_method_internal_data, | ||
157 | }; | ||
158 | |||
159 | const SSL_METHOD * | ||
160 | DTLSv1_client_method(void) | ||
161 | { | ||
162 | return &DTLSv1_client_method_data; | ||
163 | } | ||
164 | |||
165 | const SSL_METHOD * | ||
166 | dtls1_get_client_method(int ver) | ||
167 | { | ||
168 | if (ver == DTLS1_VERSION) | ||
169 | return (DTLSv1_client_method()); | ||
170 | return (NULL); | ||
171 | } | ||
172 | |||
173 | int | 130 | int |
174 | dtls1_get_hello_verify(SSL *s) | 131 | dtls1_get_hello_verify(SSL *s) |
175 | { | 132 | { |