From 4c558351cde66b56704ea037c23dbf0512e2a02d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sun, 6 Oct 2024 14:03:25 +0300
Subject: [PATCH 1/1] TlsRequest: Fixed build
src/tlsrequest.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/tlsrequest.c b/src/tlsrequest.c
index ae38688..85dffc3 100644
--- a/src/tlsrequest.c
+++ b/src/tlsrequest.c
@@ -180,7 +180,9 @@ static void saveSession_Context_(iContext *d, const iString *host, uint16_t port
SSL_SESSION *sess, const iTlsCertificate *serverCert,
const iTlsCertificate *clientCert) {
if (sess && serverCert) {
+#if defined (iHaveDebugOutput)
const char *tname = cstr_String(name_Thread(current_Thread()));
+#endif
iDebug("[%s] saveSession: host=%s port=%u\n", tname, cstr_String(host), port);
iString *key = cacheKey_(host, port);
iCachedSession *cs = new_CachedSession(sess, serverCert);
@@ -1112,8 +1114,9 @@ static iThreadResult run_TlsRequest_(iThread *thread) {
iTlsRequest *d = userData_Thread(thread);
/* Thread-local pointer to the current request so it can be accessed in the
verify callback. */
+#if defined (iHaveDebugOutput)
const char *tname = cstr_String(name_Thread(thread));
+#endif
iDebug("[%s] run_TlsRequest_: %zu bytes to send\n", tname, size_Block(&d->sending));
setCurrentRequestForThread_Context_(context_, d);
doHandshake_TlsRequest_(d);
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).