diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-12-28 11:27:31 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-01-13 09:09:36 +0100 |
commit | bf973d0697e61a44dc46d08b0421a08a8cb61887 (patch) | |
tree | 023ed993172263fa1c261e8321d77b325380d95f /engines | |
parent | 5a2d0ef36f4c130758a9d5e84f93004458e3ce60 (diff) | |
download | openssl-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.c | 3 |
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; |