diff options
| author | tb <> | 2025-10-24 11:33:38 +0000 | 
|---|---|---|
| committer | tb <> | 2025-10-24 11:33:38 +0000 | 
| commit | f77c42a93e09c937696f65c6aefd2b3120a20cff (patch) | |
| tree | 8caa19f0bf9d3c53e5002a0ce6f375a37d971e7c /src/lib/libcrypto/x509/x509_vpm.c | |
| parent | 8cbd4e746f40c750809e34d04c0298e0a5ff6f42 (diff) | |
| download | openbsd-f77c42a93e09c937696f65c6aefd2b3120a20cff.tar.gz openbsd-f77c42a93e09c937696f65c6aefd2b3120a20cff.tar.bz2 openbsd-f77c42a93e09c937696f65c6aefd2b3120a20cff.zip | |
Expose X509_VERIFY_PARAM_get_hostflags()
This is needed by Python 3.14, extending the urllib3 nonsense further.
This is a trivial getter and it is exercised by the libssl unit test
I added for urllib3 (which can now use dynamic linking for libcrypto).
Fixes https://github.com/libressl/portable/issues/1202
Thanks to @orbea for the report.
ok kenjiro
PS: X509_VERIFY_PARAM_get_flags() and X509_VERIFY_PARAM_get_peername()
aren't const correct. Fixing this will require some doing...
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vpm.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vpm.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c index 0789a51c13..7b4ce3b7a6 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.57 2025/10/10 23:07:40 tb Exp $ */ | 1 | /* $OpenBSD: x509_vpm.c,v 1.58 2025/10/24 11:33:38 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 | */ | 
| @@ -543,12 +543,12 @@ X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, | |||
| 543 | } | 543 | } | 
| 544 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host); | 544 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_add1_host); | 
| 545 | 545 | ||
| 546 | /* Public API in OpenSSL - nothing seems to use this. */ | ||
| 547 | unsigned int | 546 | unsigned int | 
| 548 | X509_VERIFY_PARAM_get_hostflags(const X509_VERIFY_PARAM *param) | 547 | X509_VERIFY_PARAM_get_hostflags(const X509_VERIFY_PARAM *param) | 
| 549 | { | 548 | { | 
| 550 | return param->hostflags; | 549 | return param->hostflags; | 
| 551 | } | 550 | } | 
| 551 | LCRYPTO_ALIAS(X509_VERIFY_PARAM_get_hostflags); | ||
| 552 | 552 | ||
| 553 | void | 553 | void | 
| 554 | X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags) | 554 | X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, unsigned int flags) | 
