summaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-12-28 11:27:31 +0100
committerDr. David von Oheimb <dev@ddvo.net>2021-01-13 09:09:36 +0100
commitbf973d0697e61a44dc46d08b0421a08a8cb61887 (patch)
tree023ed993172263fa1c261e8321d77b325380d95f /engines
parent5a2d0ef36f4c130758a9d5e84f93004458e3ce60 (diff)
downloadopenssl-new-bf973d0697e61a44dc46d08b0421a08a8cb61887.tar.gz
Add X509_NAME_hash_ex() to be able to check if it failed due to unsupported SHA1
Deprecate X509_NAME_hash() Document X509_NAME_hash_ex(), X509_NAME_hash(), X509_{subject,issuer}_name_hash() Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13762)
Diffstat (limited to 'engines')
-rw-r--r--engines/e_loader_attic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c
index 586a21df41..0a738b0ff7 100644
--- a/engines/e_loader_attic.c
+++ b/engines/e_loader_attic.c
@@ -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;