the_Foundation [main]

TlsRequest: Fixed build

=> 4c558351cde66b56704ea037c23dbf0512e2a02d

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));
-    iUnused(tname); /* just for debug logs */
+#endif
     iDebug("[%s] run_TlsRequest_: %zu bytes to send\n", tname, size_Block(&d->sending));
     setCurrentRequestForThread_Context_(context_, d);
     doHandshake_TlsRequest_(d);
Proxy Information
Original URL
gemini://git.skyjake.fi/the_Foundation/main/cdiff/4c558351cde66b56704ea037c23dbf0512e2a02d
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
27.83236 milliseconds
Gemini-to-HTML Time
0.214953 milliseconds

This content has been proxied by September (ba2dc).