summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2021-03-31 16:55:04 +0000
committertb <tb@openbsd.org>2021-03-31 16:55:04 +0000
commit625eacf7434e04121b655b1ab165795f27faff54 (patch)
tree6c2e97205bf1978b48ce695cac92aaa4bd14ed39
parentDocument SSL_use_certificate_chain_file(3) (diff)
downloadwireguard-openbsd-625eacf7434e04121b655b1ab165795f27faff54.tar.xz
wireguard-openbsd-625eacf7434e04121b655b1ab165795f27faff54.zip
Expose SSL_set_hostflags(3) and SSL_get0_peername(3)
ok bcook inoguchi jsing
-rw-r--r--lib/libssl/Symbols.list2
-rw-r--r--lib/libssl/ssl.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/Symbols.list b/lib/libssl/Symbols.list
index f857ecb2623..9234cf6e51a 100644
--- a/lib/libssl/Symbols.list
+++ b/lib/libssl/Symbols.list
@@ -196,6 +196,7 @@ SSL_get0_alpn_selected
SSL_get0_chain_certs
SSL_get0_next_proto_negotiated
SSL_get0_param
+SSL_get0_peername
SSL_get1_session
SSL_get1_supported_ciphers
SSL_get_SSL_CTX
@@ -274,6 +275,7 @@ SSL_set_debug
SSL_set_ex_data
SSL_set_fd
SSL_set_generate_session_id
+SSL_set_hostflags
SSL_set_info_callback
SSL_set_max_proto_version
SSL_set_min_proto_version
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h
index 81434640398..5665a091798 100644
--- a/lib/libssl/ssl.h
+++ b/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.184 2021/03/31 16:52:15 tb Exp $ */
+/* $OpenBSD: ssl.h,v 1.185 2021/03/31 16:55:04 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1452,10 +1452,8 @@ int SSL_set_purpose(SSL *s, int purpose);
int SSL_CTX_set_trust(SSL_CTX *s, int trust);
int SSL_set_trust(SSL *s, int trust);
int SSL_set1_host(SSL *s, const char *hostname);
-#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)
void SSL_set_hostflags(SSL *s, unsigned int flags);
const char *SSL_get0_peername(SSL *s);
-#endif
X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);