curl/lib/vtls
Piotr Nakraszewicz e022da0e83
openssl: fix pkcs11 provider available check
Commit f2ce6c46 among other things added the use of own library context
instead of the default context. Default context has access to OpenSSL
configuration file, own context doesn't have it.
Therefore if a pkcs11 provider is loaded via config file, the function
OSSL_PROVIDER_available() incorrectly detects the provider as
unavailable.

Fix this by loading the OpenSSL config to the library context according
to OpenSSL documentation:
"OSSL_LIB_CTX_load_config() loads a configuration file using the given
ctx. This can be used to associate a library context with providers that
are loaded from a configuration."

Moreover use the provider_loaded flag instead of provider pointer to
determine if a provider is available, as the latter is not set when the
provider is loaded from a configuration.

Closes #17804
2025-07-04 08:28:46 +02:00
..
.checksrc checksrc: reduce exceptions, apply again to curlx 2025-06-27 17:33:35 +02:00
cipher_suite.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
cipher_suite.h TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00
gtls.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
gtls.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
hostcheck.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
hostcheck.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
keylog.c urlapi: use uppercase hex encoding 2025-06-25 11:44:13 +02:00
keylog.h spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
mbedtls.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
mbedtls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
mbedtls_threadlock.c lib: include files using known path 2025-04-08 17:00:00 +02:00
mbedtls_threadlock.h lib: include files using known path 2025-04-08 17:00:00 +02:00
openssl.c openssl: fix pkcs11 provider available check 2025-07-04 08:28:46 +02:00
openssl.h lib: include files using known path 2025-04-08 17:00:00 +02:00
rustls.c rustls: don't try printing the not provided file 2025-06-22 22:31:11 +02:00
rustls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
schannel.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
schannel.h lib: include files using known path 2025-04-08 17:00:00 +02:00
schannel_int.h lib: use BIT() instead of bool in structs more 2025-04-22 08:01:08 +02:00
schannel_verify.c tidy-up: two comments 2025-06-15 13:32:24 +02:00
vtls.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
vtls.h tls: remove Curl_ssl false_start 2025-06-12 08:29:15 +02:00
vtls_int.h vtls: change send/recv signatures of tls backends 2025-06-21 10:34:02 +02:00
vtls_scache.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
vtls_scache.h lib: replace scache no-op macros with #ifdef 2025-06-27 17:33:34 +02:00
vtls_spack.c curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
vtls_spack.h lib: include files using known path 2025-04-08 17:00:00 +02:00
wolfssl.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
wolfssl.h pytest: add pinnedpubkey test cases 2025-05-21 22:45:42 +02:00
x509asn1.c lib: drop two interim macros in favor of native libcurl API calls 2025-06-30 18:38:56 +02:00
x509asn1.h TLS: remove support for Secure Transport and BearSSL 2025-06-11 07:54:19 +02:00