{"author":"Piotr Nakraszewicz","author_email":"piotr.nakraszewicz@consult.red","author_time":1751459383,"commit_time":1751610526,"committer":"Daniel Stenberg","committer_email":"daniel@haxx.se","hash":"e022da0e8301b0bcc905cd2ca09879ca860e0332","message":"openssl: fix pkcs11 provider available check\n\nCommit f2ce6c46 among other things added the use of own library context\ninstead of the default context. Default context has access to OpenSSL\nconfiguration file, own context doesn't have it.\nTherefore if a pkcs11 provider is loaded via config file, the function\nOSSL_PROVIDER_available() incorrectly detects the provider as\nunavailable.\n\nFix this by loading the OpenSSL config to the library context according\nto OpenSSL documentation:\n\"OSSL_LIB_CTX_load_config() loads a configuration file using the given\nctx. This can be used to associate a library context with providers that\nare loaded from a configuration.\"\n\nMoreover use the provider_loaded flag instead of provider pointer to\ndetermine if a provider is available, as the latter is not set when the\nprovider is loaded from a configuration.\n\nCloses #17804\n","parents":["42fdc65a989d9e57c418eb56770ab8e31736d56a"],"tree_hash":"1cf77a44000fdac716699590d567a1ca83ea13bb"}