diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-03-05 08:22:56 +1000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-03-22 15:40:04 +0100 |
commit | e72dbd8e13cbf5a16faaa6c911af5507593dd836 (patch) | |
tree | ec450d9fef6ba2223cfc36ee1865512254f9dd23 /crypto/ess/ess_lib.c | |
parent | c781eb1c63c243cb64dbe3066a43dc172aaab3b8 (diff) |
Fix usages of const EVP_MD.
Partially fixes #13837
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14474)
Diffstat (limited to 'crypto/ess/ess_lib.c')
-rw-r--r-- | crypto/ess/ess_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ess/ess_lib.c b/crypto/ess/ess_lib.c index ebc76cb79c..96cb6d053f 100644 --- a/crypto/ess/ess_lib.c +++ b/crypto/ess/ess_lib.c @@ -145,7 +145,7 @@ static ESS_CERT_ID_V2 *ESS_CERT_ID_V2_new_init(const EVP_MD *hash_alg, if ((cid = ESS_CERT_ID_V2_new()) == NULL) goto err; - if (hash_alg != EVP_sha256()) { + if (!EVP_MD_is_a(hash_alg, SN_sha256)) { alg = X509_ALGOR_new(); if (alg == NULL) goto err; |