]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - engines/e_loader_attic.c
Add X509_NAME_hash_ex() to be able to check if it failed due to unsupported SHA1
[thirdparty/openssl.git] / engines / e_loader_attic.c
index 586a21df4118d3752538a304d183aa0071d36405..0a738b0ff7506b45ec09b7aaa75390738e8faea5 100644 (file)
@@ -1155,7 +1155,8 @@ static int file_find(OSSL_STORE_LOADER_CTX *ctx,
             return 0;
         }
 
-        hash = X509_NAME_hash(OSSL_STORE_SEARCH_get0_name(search));
+        hash = X509_NAME_hash_ex(OSSL_STORE_SEARCH_get0_name(search),
+                                 NULL, NULL, NULL);
         BIO_snprintf(ctx->_.dir.search_name, sizeof(ctx->_.dir.search_name),
                      "%08lx", hash);
         return 1;