diff options
author | tb <> | 2023-05-24 08:46:01 +0000 |
---|---|---|
committer | tb <> | 2023-05-24 08:46:01 +0000 |
commit | 090718e4047f15051f18fefe10308c1bdc698039 (patch) | |
tree | 08b319a41872df12f92199c1cb8520119ddddb9d | |
parent | 7cab7499f764c06376e465d4c8264bd7315c181c (diff) | |
download | openbsd-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.c | 9 |
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 | } |
552 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host); | 552 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host); |
553 | 553 | ||
554 | /* Public API in OpenSSL - nothing seems to use this. */ | ||
555 | unsigned int | ||
556 | X509_VERIFY_PARAM_get_hostflags(X509_VERIFY_PARAM *param) | ||
557 | { | ||
558 | return param->id->hostflags; | ||
559 | } | ||
560 | |||
554 | void | 561 | void |
555 | X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags) | 562 | X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags) |
556 | { | 563 | { |