diff options
Diffstat (limited to 'src/lib/libssl/ssl_methods.c')
-rw-r--r-- | src/lib/libssl/ssl_methods.c | 20 |
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 | ||
97 | const SSL_METHOD * | 97 | const SSL_METHOD * |
98 | DTLS_client_method(void) | ||
99 | { | ||
100 | return DTLSv1_client_method(); | ||
101 | } | ||
102 | |||
103 | const SSL_METHOD * | ||
98 | dtls1_get_client_method(int ver) | 104 | dtls1_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 | ||
148 | const SSL_METHOD * | ||
149 | DTLS_method(void) | ||
150 | { | ||
151 | return DTLSv1_method(); | ||
152 | } | ||
153 | |||
142 | static const SSL_METHOD * | 154 | static const SSL_METHOD * |
143 | dtls1_get_method(int ver) | 155 | dtls1_get_method(int ver) |
144 | { | 156 | { |
@@ -183,6 +195,12 @@ DTLSv1_server_method(void) | |||
183 | } | 195 | } |
184 | 196 | ||
185 | const SSL_METHOD * | 197 | const SSL_METHOD * |
198 | DTLS_server_method(void) | ||
199 | { | ||
200 | return DTLSv1_server_method(); | ||
201 | } | ||
202 | |||
203 | const SSL_METHOD * | ||
186 | dtls1_get_server_method(int ver) | 204 | dtls1_get_server_method(int ver) |
187 | { | 205 | { |
188 | if (ver == DTLS1_VERSION) | 206 | if (ver == DTLS1_VERSION) |