diff options
Diffstat (limited to 'crypto/ess')
-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; |