diff options
author | Richard Levitte <levitte@openssl.org> | 2021-02-11 12:55:19 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-02-12 14:02:06 +0100 |
commit | c5689319ebcb5356a28c297779094f3208f925f8 (patch) | |
tree | 3f75bf478364464bce24d17bc285233a1d81ae22 /crypto/ct | |
parent | 13888e797c5a3193e91d71e5f5a196a2d68d266f (diff) | |
download | openssl-c5689319ebcb5356a28c297779094f3208f925f8.tar.gz |
Use ERR_R_*_LIB instead of ERR_LIB_* as reason code for sub-libraries
Using ERR_LIB_* causes the error output to say 'reason(n)' instead of
the name of the sub-library in question.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14152)
Diffstat (limited to 'crypto/ct')
-rw-r--r-- | crypto/ct/ct_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ct/ct_log.c b/crypto/ct/ct_log.c index d41039e5b4..12e09d07a2 100644 --- a/crypto/ct/ct_log.c +++ b/crypto/ct/ct_log.c @@ -88,7 +88,7 @@ static int ct_v1_log_id_from_pkey(CTLOG *log, EVP_PKEY *pkey) } sha256 = EVP_MD_fetch(log->libctx, "SHA2-256", log->propq); if (sha256 == NULL) { - ERR_raise(ERR_LIB_CT, ERR_LIB_EVP); + ERR_raise(ERR_LIB_CT, ERR_R_EVP_LIB); goto err; } |