summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl.h
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-11-11 06:58:14 +0000
committertb <tb@openbsd.org>2018-11-11 06:58:14 +0000
commitca8dce7b8c165d8c0f044643ba260fb1bfde0cda (patch)
treefb513a7aeb7a6e4a60c8ebb7a64917297bfa0a4b /lib/libssl/ssl.h
parentAdd Ribose Inc's implementation of the SM3 hashing function with (diff)
downloadwireguard-openbsd-ca8dce7b8c165d8c0f044643ba260fb1bfde0cda.tar.xz
wireguard-openbsd-ca8dce7b8c165d8c0f044643ba260fb1bfde0cda.zip
Add SSL_set1_host(), a thin wrapper around X509_VERIFY_PARAM_set1_host().
Used by unbound's DNS over TLS implementation to do server name verification. ok jsing
Diffstat (limited to 'lib/libssl/ssl.h')
-rw-r--r--lib/libssl/ssl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h
index 4c8328fb80b..ba5241850fe 100644
--- a/lib/libssl/ssl.h
+++ b/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.161 2018/11/07 01:53:36 jsing Exp $ */
+/* $OpenBSD: ssl.h,v 1.162 2018/11/11 06:58:14 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1385,6 +1385,7 @@ int SSL_CTX_set_purpose(SSL_CTX *s, int purpose);
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);
X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);