]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
keylog: disable if unused
authorViktor Szakats <commit@vsz.me>
Fri, 17 Nov 2023 16:45:40 +0000 (16:45 +0000)
committerViktor Szakats <commit@vsz.me>
Sat, 18 Nov 2023 11:16:31 +0000 (11:16 +0000)
Fully disable keylog code if there is no TLS or QUIC subsystem using it.

Closes #12350

lib/vtls/keylog.c

index d37bb183e7ced1dc278a590412cee2ee229056b4..baea548a3e07210ee7e110b324bdd871f95bc1ca 100644 (file)
  ***************************************************************************/
 #include "curl_setup.h"
 
+#if defined(USE_OPENSSL) || \
+  defined(USE_WOLFSSL) || \
+  (defined(USE_NGTCP2) && defined(USE_NGHTTP3)) || \
+  defined(USE_QUICHE)
+
 #include "keylog.h"
 #include <curl/curl.h>
 
@@ -157,3 +162,5 @@ Curl_tls_keylog_write(const char *label,
   fputs(line, keylog_file_fp);
   return true;
 }
+
+#endif  /* TLS or QUIC backend */