cmp_util.c: Fix OSSL_CMP_log_open() in case OPENSSL_NO_TRACE
int OSSL_CMP_log_open(void) /* is designed to be idempotent */
{
+#ifdef OPENSSL_NO_TRACE
+ return 1;
+#else
# ifndef OPENSSL_NO_STDIO
BIO *bio = BIO_new_fp(stdout, BIO_NOCLOSE);
@@ -31,6 +34,7 @@ int OSSL_CMP_log_open(void) /* is designed to be idempotent */
# endif
ERR_raise(ERR_LIB_CMP, CMP_R_NO_STDIO);
return 0;
+#endif
}
void OSSL_CMP_log_close(void) /* is designed to be idempotent */
