summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto
diff options
context:
space:
mode:
authortb <>2023-05-24 08:46:01 +0000
committertb <>2023-05-24 08:46:01 +0000
commit56ed6e40d9d9c7905b788e788884d3c7302807cc (patch)
tree08b319a41872df12f92199c1cb8520119ddddb9d /src/lib/libcrypto
parent6825aba8c0202893f32509537fbfa606a2459325 (diff)
downloadopenbsd-56ed6e40d9d9c7905b788e788884d3c7302807cc.tar.gz
openbsd-56ed6e40d9d9c7905b788e788884d3c7302807cc.tar.bz2
openbsd-56ed6e40d9d9c7905b788e788884d3c7302807cc.zip
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 'src/lib/libcrypto')
-rw-r--r--src/lib/libcrypto/x509/x509_vpm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c
index 4896fe8b7e..2110787a5f 100644
--- a/src/lib/libcrypto/x509/x509_vpm.c
+++ b/src/lib/libcrypto/x509/x509_vpm.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vpm.c,v 1.37 2023/04/28 16:50:16 beck Exp $ */ 1/* $OpenBSD: x509_vpm.c,v 1.38 2023/05/24 08:46:01 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2004. 3 * project 2004.
4 */ 4 */
@@ -551,6 +551,13 @@ X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param,
551} 551}
552LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host); 552LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host);
553 553
554/* Public API in OpenSSL - nothing seems to use this. */
555unsigned int
556X509_VERIFY_PARAM_get_hostflags(X509_VERIFY_PARAM *param)
557{
558 return param->id->hostflags;
559}
560
554void 561void
555X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags) 562X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags)
556{ 563{