summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-05-24 08:46:01 +0000
committertb <>2023-05-24 08:46:01 +0000
commit090718e4047f15051f18fefe10308c1bdc698039 (patch)
tree08b319a41872df12f92199c1cb8520119ddddb9d
parent7cab7499f764c06376e465d4c8264bd7315c181c (diff)
downloadopenbsd-090718e4047f15051f18fefe10308c1bdc698039.tar.gz
openbsd-090718e4047f15051f18fefe10308c1bdc698039.tar.bz2
openbsd-090718e4047f15051f18fefe10308c1bdc698039.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
-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{