Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/28973)
(cherry picked from commit
94c36852d254a626739667874587b5364ddf087e)
/* re-do the above check (just) for adding diagnostic information */
ossl_cmp_info(ctx,
"trying to verify msg signature with previously validated cert");
+ ctx->log_cb = backup_log_cb;
(void)check_msg_given_cert(ctx, scrt, msg);
+ ctx->log_cb = NULL;
(void)ossl_cmp_ctx_set1_validatedSrvCert(ctx, NULL); /* this invalidates scrt */
}