summaryrefslogtreecommitdiffstats
path: root/crypto/ess
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-03-05 08:22:56 +1000
committerTomas Mraz <tomas@openssl.org>2021-03-22 15:40:04 +0100
commite72dbd8e13cbf5a16faaa6c911af5507593dd836 (patch)
treeec450d9fef6ba2223cfc36ee1865512254f9dd23 /crypto/ess
parentc781eb1c63c243cb64dbe3066a43dc172aaab3b8 (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')
-rw-r--r--crypto/ess/ess_lib.c2
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;