Fixed #6989: Use X509_STORE_set_default_paths

This commit is contained in:
akallabeth 2021-05-03 08:27:31 +02:00 committed by akallabeth
parent bad528d36b
commit 9e466abe6f

View File

@ -842,9 +842,7 @@ BOOL x509_verify_certificate(CryptoCert cert, const char* certificate_store_path
NULL);
#endif
lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_file());
if (lookup == NULL)
if (X509_STORE_set_default_paths(cert_ctx) != 1)
goto end;
lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_hash_dir());