summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-05-24 08:46:02 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-05-24 08:46:02 +0000
commit54a868e5dd8e3109bf1ef5523425a3b655bd08ef (patch)
treeed8aff0b88403701c7c921805465263c637fa023 /lib
parent8e11700d79f02807e5b0f49bc2662c5a2873e646 (diff)
Provide X509_VERIFY_PARAM_set_hostflags()
This is needed for an upcoming regress test that needs to access the hostflag. This is public API in OpenSSL but since nothing seems to be using this, this accessor will be kept internal-only for the time being. ok jsing
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/x509/x509_vpm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509_vpm.c b/lib/libcrypto/x509/x509_vpm.c
index 4896fe8b7ed..2110787a5f6 100644
--- a/lib/libcrypto/x509/x509_vpm.c
+++ b/lib/libcrypto/x509/x509_vpm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vpm.c,v 1.37 2023/04/28 16:50:16 beck Exp $ */
+/* $OpenBSD: x509_vpm.c,v 1.38 2023/05/24 08:46:01 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2004.
*/
@@ -551,6 +551,13 @@ X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param,
}
LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host);
+/* Public API in OpenSSL - nothing seems to use this. */
+unsigned int
+X509_VERIFY_PARAM_get_hostflags(X509_VERIFY_PARAM *param)
+{
+ return param->id->hostflags;
+}
+
void
X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags)
{