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_vfy.h | |
| 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_vfy.h')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index 7058bbc5b0..04e555149a 100644 --- a/src/lib/libcrypto/x509/x509_vfy.h +++ b/src/lib/libcrypto/x509/x509_vfy.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_vfy.h,v 1.70 2025/03/09 15:20:20 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.71 2025/10/24 11:33:38 tb Exp $ */ | 
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 
| 3 | * All rights reserved. | 3 | * All rights reserved. | 
| 4 | * | 4 | * | 
| @@ -441,6 +441,7 @@ int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param, const char *name, | |||
| 441 | size_t namelen); | 441 | size_t namelen); | 
| 442 | int X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, const char *name, | 442 | int X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param, const char *name, | 
| 443 | size_t namelen); | 443 | size_t namelen); | 
| 444 | unsigned int X509_VERIFY_PARAM_get_hostflags(const X509_VERIFY_PARAM *param); | ||
| 444 | void X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, | 445 | void X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param, | 
| 445 | unsigned int flags); | 446 | unsigned int flags); | 
| 446 | char *X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *param); | 447 | char *X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *param); | 
