Expose SSL_set_hostflags(3) and SSL_get0_peername(3)
authortb <tb@openbsd.org>
Wed, 31 Mar 2021 16:55:04 +0000 (16:55 +0000)
committertb <tb@openbsd.org>
Wed, 31 Mar 2021 16:55:04 +0000 (16:55 +0000)
ok bcook inoguchi jsing

lib/libssl/Symbols.list
lib/libssl/ssl.h

index f857ecb..9234cf6 100644 (file)
@@ -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
index 8143464..5665a09 100644 (file)
@@ -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);