diff options
author | Richard Levitte <levitte@openssl.org> | 2020-11-04 12:26:49 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-11-11 12:15:48 +0100 |
commit | 6debc6ab7499745baf7123e69936a9997dbbe6cb (patch) | |
tree | 4f891062f12d2fb28b66870c6bc0421d964773f9 /providers/implementations/ciphers | |
parent | c48ffbcca1d0213c6bcbe85de7bb5dd23c76438d (diff) |
Convert all {NAME}err() in providers/ to their corresponding ERR_raise() call
This was done using util/err-to-raise
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13319)
Diffstat (limited to 'providers/implementations/ciphers')
-rw-r--r-- | providers/implementations/ciphers/cipher_tdes_wrap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/providers/implementations/ciphers/cipher_tdes_wrap.c b/providers/implementations/ciphers/cipher_tdes_wrap.c index 6d908a3ed5..acb8c97e33 100644 --- a/providers/implementations/ciphers/cipher_tdes_wrap.c +++ b/providers/implementations/ciphers/cipher_tdes_wrap.c @@ -138,7 +138,7 @@ static int tdes_wrap_cipher(void *vctx, return 0; if (outsize < inl) { - PROVerr(0, PROV_R_OUTPUT_BUFFER_TOO_SMALL); + ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL); return 0; } @@ -158,12 +158,12 @@ static int tdes_wrap_update(void *vctx, unsigned char *out, size_t *outl, if (inl == 0) return 1; if (outsize < inl) { - PROVerr(0, PROV_R_OUTPUT_BUFFER_TOO_SMALL); + ERR_raise(ERR_LIB_PROV, PROV_R_OUTPUT_BUFFER_TOO_SMALL); return 0; } if (!tdes_wrap_cipher(vctx, out, outl, outsize, in, inl)) { - PROVerr(0, PROV_R_CIPHER_OPERATION_FAILED); + ERR_raise(ERR_LIB_PROV, PROV_R_CIPHER_OPERATION_FAILED); return 0; } return 1; |