mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
remove redundant ERR_raise
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17175)
This commit is contained in:
parent
318e97997a
commit
ecf60b9e27
@ -34,10 +34,8 @@ static int verify_signature(const OSSL_CMP_CTX *cmp_ctx,
|
||||
return 0;
|
||||
|
||||
bio = BIO_new(BIO_s_mem()); /* may be NULL */
|
||||
if (bio == NULL) {
|
||||
ERR_raise(ERR_LIB_CMP, ERR_R_MALLOC_FAILURE);
|
||||
if (bio == NULL)
|
||||
return 0;
|
||||
}
|
||||
/* verify that keyUsage, if present, contains digitalSignature */
|
||||
if (!cmp_ctx->ignore_keyusage
|
||||
&& (X509_get_key_usage(cert) & X509v3_KU_DIGITAL_SIGNATURE) == 0) {
|
||||
|
@ -470,10 +470,8 @@ int X509_STORE_CTX_print_verify_cb(int ok, X509_STORE_CTX *ctx)
|
||||
int cert_error = X509_STORE_CTX_get_error(ctx);
|
||||
BIO *bio = BIO_new(BIO_s_mem()); /* may be NULL */
|
||||
|
||||
if (bio == NULL) {
|
||||
ERR_raise(ERR_LIB_X509, ERR_R_MALLOC_FAILURE);
|
||||
if (bio == NULL)
|
||||
return 0;
|
||||
}
|
||||
BIO_printf(bio, "%s at depth = %d error = %d (%s)\n",
|
||||
X509_STORE_CTX_get0_parent_ctx(ctx) != NULL
|
||||
? "CRL path validation"
|
||||
|
Loading…
Reference in New Issue
Block a user