diff options
author | 2019-03-17 17:28:08 +0000 | |
---|---|---|
committer | 2019-03-17 17:28:08 +0000 | |
commit | 71023d34a807e30782fc2437cecdd0794d70d29f (patch) | |
tree | b1b4409b330256d5c947152d3789dffb8adff4bb /lib/libssl/ssl_methods.c | |
parent | Grow sgi ISO/FS media space to cope with the clang growth. (diff) | |
download | wireguard-openbsd-71023d34a807e30782fc2437cecdd0794d70d29f.tar.xz wireguard-openbsd-71023d34a807e30782fc2437cecdd0794d70d29f.zip |
Provide version agnostic DTLS methods.
ok tb@
Diffstat (limited to 'lib/libssl/ssl_methods.c')
-rw-r--r-- | lib/libssl/ssl_methods.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/libssl/ssl_methods.c b/lib/libssl/ssl_methods.c index bacc186a58b..df99d98c8a6 100644 --- a/lib/libssl/ssl_methods.c +++ b/lib/libssl/ssl_methods.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_methods.c,v 1.3 2019/02/14 18:53:15 jsing Exp $ */ +/* $OpenBSD: ssl_methods.c,v 1.4 2019/03/17 17:28:08 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -95,6 +95,12 @@ DTLSv1_client_method(void) } const SSL_METHOD * +DTLS_client_method(void) +{ + return DTLSv1_client_method(); +} + +const SSL_METHOD * dtls1_get_client_method(int ver) { if (ver == DTLS1_VERSION) @@ -139,6 +145,12 @@ DTLSv1_method(void) return &DTLSv1_method_data; } +const SSL_METHOD * +DTLS_method(void) +{ + return DTLSv1_method(); +} + static const SSL_METHOD * dtls1_get_method(int ver) { @@ -183,6 +195,12 @@ DTLSv1_server_method(void) } const SSL_METHOD * +DTLS_server_method(void) +{ + return DTLSv1_server_method(); +} + +const SSL_METHOD * dtls1_get_server_method(int ver) { if (ver == DTLS1_VERSION) |