diff options
author | 2020-10-14 16:49:57 +0000 | |
---|---|---|
committer | 2020-10-14 16:49:57 +0000 | |
commit | d4fdd934385be76dd0e8c7a64927baeef264a68b (patch) | |
tree | 9f7153a8c2de28091778c525fdde3ac7fb5d8c05 /lib/libssl/ssl_lib.c | |
parent | Split the userland vs kernel uvm_fault reaching paths to reduce late (diff) | |
download | wireguard-openbsd-d4fdd934385be76dd0e8c7a64927baeef264a68b.tar.xz wireguard-openbsd-d4fdd934385be76dd0e8c7a64927baeef264a68b.zip |
Provide SSL_is_dtls().
For now this is #ifdef LIBRESSL_INTERNAL and will be exposed during the
next library bump.
ok tb@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index b306137c142..399af7c769d 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.235 2020/10/11 02:22:27 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.236 2020/10/14 16:49:57 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -939,6 +939,12 @@ SSL_connect(SSL *s) } int +SSL_is_dtls(const SSL *s) +{ + return s->method->internal->dtls; +} + +int SSL_is_server(const SSL *s) { return s->server; |