quicserver.c: Fix build with no-ssl-trace
authorTomas Mraz <tomas@openssl.org>
Mon, 4 Sep 2023 19:50:18 +0000 (21:50 +0200)
committerPauli <pauli@openssl.org>
Mon, 4 Sep 2023 23:42:08 +0000 (09:42 +1000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21958)

util/quicserver.c

index c25128eaf6c3d12a3e1a6dc51dd4951b0becb09f..5a51b240ffdf7669e6ea38a1849a7e365cd64c6c 100644 (file)
@@ -217,7 +217,12 @@ int main(int argc, char *argv[])
     bio = NULL;
 
     if (trace)
+#ifndef OPENSSL_NO_SSL_TRACE
         ossl_quic_tserver_set_msg_callback(qtserv, SSL_trace, bio_err);
+#else
+        BIO_printf(bio_err,
+                   "Warning: -trace specified but no SSL tracing support present\n");
+#endif
 
     /* Wait for handshake to complete */
     ossl_quic_tserver_tick(qtserv);