2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
11 #include <openssl/objects.h>
18 IMPLEMENT_tls_meth_func(TLS_ANY_VERSION, 0, 0,
21 ossl_statem_connect, TLSv1_2_enc_data)
22 #ifndef OPENSSL_NO_TLS1_3_METHOD
23 IMPLEMENT_tls_meth_func(TLS1_3_VERSION, 0, SSL_OP_NO_TLSv1_3,
26 ossl_statem_connect, TLSv1_3_enc_data)
28 #ifndef OPENSSL_NO_TLS1_2_METHOD
29 IMPLEMENT_tls_meth_func(TLS1_2_VERSION, 0, SSL_OP_NO_TLSv1_2,
32 ossl_statem_connect, TLSv1_2_enc_data)
34 #ifndef OPENSSL_NO_TLS1_1_METHOD
35 IMPLEMENT_tls_meth_func(TLS1_1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1_1,
38 ossl_statem_connect, TLSv1_1_enc_data)
40 #ifndef OPENSSL_NO_TLS1_METHOD
41 IMPLEMENT_tls_meth_func(TLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1,
43 ossl_statem_accept, ossl_statem_connect, TLSv1_enc_data)
45 #ifndef OPENSSL_NO_SSL3_METHOD
46 IMPLEMENT_ssl3_meth_func(sslv3_method, ossl_statem_accept, ossl_statem_connect)
49 * TLS/SSLv3 server methods
51 IMPLEMENT_tls_meth_func(TLS_ANY_VERSION, 0, 0,
54 ssl_undefined_function, TLSv1_2_enc_data)
55 #ifndef OPENSSL_NO_TLS1_3_METHOD
56 IMPLEMENT_tls_meth_func(TLS1_3_VERSION, 0, SSL_OP_NO_TLSv1_3,
57 tlsv1_3_server_method,
59 ssl_undefined_function, TLSv1_3_enc_data)
61 #ifndef OPENSSL_NO_TLS1_2_METHOD
62 IMPLEMENT_tls_meth_func(TLS1_2_VERSION, 0, SSL_OP_NO_TLSv1_2,
63 tlsv1_2_server_method,
65 ssl_undefined_function, TLSv1_2_enc_data)
67 #ifndef OPENSSL_NO_TLS1_1_METHOD
68 IMPLEMENT_tls_meth_func(TLS1_1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1_1,
69 tlsv1_1_server_method,
71 ssl_undefined_function, TLSv1_1_enc_data)
73 #ifndef OPENSSL_NO_TLS1_METHOD
74 IMPLEMENT_tls_meth_func(TLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1,
77 ssl_undefined_function, TLSv1_enc_data)
79 #ifndef OPENSSL_NO_SSL3_METHOD
80 IMPLEMENT_ssl3_meth_func(sslv3_server_method,
81 ossl_statem_accept, ssl_undefined_function)
84 * TLS/SSLv3 client methods
86 IMPLEMENT_tls_meth_func(TLS_ANY_VERSION, 0, 0,
88 ssl_undefined_function,
89 ossl_statem_connect, TLSv1_2_enc_data)
90 #ifndef OPENSSL_NO_TLS1_3_METHOD
91 IMPLEMENT_tls_meth_func(TLS1_3_VERSION, 0, SSL_OP_NO_TLSv1_3,
92 tlsv1_3_client_method,
93 ssl_undefined_function,
94 ossl_statem_connect, TLSv1_3_enc_data)
96 #ifndef OPENSSL_NO_TLS1_2_METHOD
97 IMPLEMENT_tls_meth_func(TLS1_2_VERSION, 0, SSL_OP_NO_TLSv1_2,
98 tlsv1_2_client_method,
99 ssl_undefined_function,
100 ossl_statem_connect, TLSv1_2_enc_data)
102 #ifndef OPENSSL_NO_TLS1_1_METHOD
103 IMPLEMENT_tls_meth_func(TLS1_1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1_1,
104 tlsv1_1_client_method,
105 ssl_undefined_function,
106 ossl_statem_connect, TLSv1_1_enc_data)
108 #ifndef OPENSSL_NO_TLS1_METHOD
109 IMPLEMENT_tls_meth_func(TLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_TLSv1,
111 ssl_undefined_function,
112 ossl_statem_connect, TLSv1_enc_data)
114 #ifndef OPENSSL_NO_SSL3_METHOD
115 IMPLEMENT_ssl3_meth_func(sslv3_client_method,
116 ssl_undefined_function, ossl_statem_connect)
121 #ifndef OPENSSL_NO_DTLS1_METHOD
122 IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
125 ossl_statem_connect, DTLSv1_enc_data)
127 #ifndef OPENSSL_NO_DTLS1_2_METHOD
128 IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, 0, SSL_OP_NO_DTLSv1_2,
131 ossl_statem_connect, DTLSv1_2_enc_data)
133 IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION, 0, 0,
136 ossl_statem_connect, DTLSv1_2_enc_data)
139 * DTLS server methods
141 #ifndef OPENSSL_NO_DTLS1_METHOD
142 IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
143 dtlsv1_server_method,
145 ssl_undefined_function, DTLSv1_enc_data)
147 #ifndef OPENSSL_NO_DTLS1_2_METHOD
148 IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, 0, SSL_OP_NO_DTLSv1_2,
149 dtlsv1_2_server_method,
151 ssl_undefined_function, DTLSv1_2_enc_data)
153 IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION, 0, 0,
156 ssl_undefined_function, DTLSv1_2_enc_data)
159 * DTLS client methods
161 #ifndef OPENSSL_NO_DTLS1_METHOD
162 IMPLEMENT_dtls1_meth_func(DTLS1_VERSION, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
163 dtlsv1_client_method,
164 ssl_undefined_function,
165 ossl_statem_connect, DTLSv1_enc_data)
166 IMPLEMENT_dtls1_meth_func(DTLS1_BAD_VER, SSL_METHOD_NO_SUITEB, SSL_OP_NO_DTLSv1,
167 dtls_bad_ver_client_method,
168 ssl_undefined_function,
169 ossl_statem_connect, DTLSv1_enc_data)
171 #ifndef OPENSSL_NO_DTLS1_2_METHOD
172 IMPLEMENT_dtls1_meth_func(DTLS1_2_VERSION, 0, SSL_OP_NO_DTLSv1_2,
173 dtlsv1_2_client_method,
174 ssl_undefined_function,
175 ossl_statem_connect, DTLSv1_2_enc_data)
177 IMPLEMENT_dtls1_meth_func(DTLS_ANY_VERSION, 0, 0,
179 ssl_undefined_function,
180 ossl_statem_connect, DTLSv1_2_enc_data)
181 #if OPENSSL_API_COMPAT < 0x10100000L
182 # ifndef OPENSSL_NO_TLS1_2_METHOD
183 const SSL_METHOD *TLSv1_2_method(void)
185 return tlsv1_2_method();
188 const SSL_METHOD *TLSv1_2_server_method(void)
190 return tlsv1_2_server_method();
193 const SSL_METHOD *TLSv1_2_client_method(void)
195 return tlsv1_2_client_method();
199 # ifndef OPENSSL_NO_TLS1_1_METHOD
200 const SSL_METHOD *TLSv1_1_method(void)
202 return tlsv1_1_method();
205 const SSL_METHOD *TLSv1_1_server_method(void)
207 return tlsv1_1_server_method();
210 const SSL_METHOD *TLSv1_1_client_method(void)
212 return tlsv1_1_client_method();
216 # ifndef OPENSSL_NO_TLS1_METHOD
217 const SSL_METHOD *TLSv1_method(void)
219 return tlsv1_method();
222 const SSL_METHOD *TLSv1_server_method(void)
224 return tlsv1_server_method();
227 const SSL_METHOD *TLSv1_client_method(void)
229 return tlsv1_client_method();
233 # ifndef OPENSSL_NO_SSL3_METHOD
234 const SSL_METHOD *SSLv3_method(void)
236 return sslv3_method();
239 const SSL_METHOD *SSLv3_server_method(void)
241 return sslv3_server_method();
244 const SSL_METHOD *SSLv3_client_method(void)
246 return sslv3_client_method();
250 # ifndef OPENSSL_NO_DTLS1_2_METHOD
251 const SSL_METHOD *DTLSv1_2_method(void)
253 return dtlsv1_2_method();
256 const SSL_METHOD *DTLSv1_2_server_method(void)
258 return dtlsv1_2_server_method();
261 const SSL_METHOD *DTLSv1_2_client_method(void)
263 return dtlsv1_2_client_method();
267 # ifndef OPENSSL_NO_DTLS1_METHOD
268 const SSL_METHOD *DTLSv1_method(void)
270 return dtlsv1_method();
273 const SSL_METHOD *DTLSv1_server_method(void)
275 return dtlsv1_server_method();
278 const SSL_METHOD *DTLSv1_client_method(void)
280 return dtlsv1_client_method();