summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_methods.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_methods.c')
-rw-r--r--src/lib/libssl/ssl_methods.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_methods.c b/src/lib/libssl/ssl_methods.c
index bacc186a58..df99d98c8a 100644
--- a/src/lib/libssl/ssl_methods.c
+++ b/src/lib/libssl/ssl_methods.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_methods.c,v 1.3 2019/02/14 18:53:15 jsing Exp $ */ 1/* $OpenBSD: ssl_methods.c,v 1.4 2019/03/17 17:28:08 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -95,6 +95,12 @@ DTLSv1_client_method(void)
95} 95}
96 96
97const SSL_METHOD * 97const SSL_METHOD *
98DTLS_client_method(void)
99{
100 return DTLSv1_client_method();
101}
102
103const SSL_METHOD *
98dtls1_get_client_method(int ver) 104dtls1_get_client_method(int ver)
99{ 105{
100 if (ver == DTLS1_VERSION) 106 if (ver == DTLS1_VERSION)
@@ -139,6 +145,12 @@ DTLSv1_method(void)
139 return &DTLSv1_method_data; 145 return &DTLSv1_method_data;
140} 146}
141 147
148const SSL_METHOD *
149DTLS_method(void)
150{
151 return DTLSv1_method();
152}
153
142static const SSL_METHOD * 154static const SSL_METHOD *
143dtls1_get_method(int ver) 155dtls1_get_method(int ver)
144{ 156{
@@ -183,6 +195,12 @@ DTLSv1_server_method(void)
183} 195}
184 196
185const SSL_METHOD * 197const SSL_METHOD *
198DTLS_server_method(void)
199{
200 return DTLSv1_server_method();
201}
202
203const SSL_METHOD *
186dtls1_get_server_method(int ver) 204dtls1_get_server_method(int ver)
187{ 205{
188 if (ver == DTLS1_VERSION) 206 if (ver == DTLS1_VERSION)