[PATCH 10 of 11] SSL: shorter debug messages about session tickets

Maxim Dounin mdounin at mdounin.ru
Fri Aug 26 03:01:17 UTC 2022


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1661481957 -10800
#      Fri Aug 26 05:45:57 2022 +0300
# Node ID 2487bf5766f79c813b3397b3bb897424c3590445
# Parent  97158a99745be75aeea01d8d1b8cd8666faab2b2
SSL: shorter debug messages about session tickets.

diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -4392,7 +4392,7 @@ ngx_ssl_ticket_key_callback(ngx_ssl_conn
         /* encrypt session ticket */
 
         ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                       "ssl session ticket encrypt, key: \"%*xs\" (%s session)",
+                       "ssl ticket encrypt, key: \"%*xs\" (%s session)",
                        (size_t) 16, key[0].name,
                        SSL_session_reused(ssl_conn) ? "reused" : "new");
 
@@ -4439,7 +4439,7 @@ ngx_ssl_ticket_key_callback(ngx_ssl_conn
         }
 
         ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                       "ssl session ticket decrypt, key: \"%*xs\" not found",
+                       "ssl ticket decrypt, key: \"%*xs\" not found",
                        (size_t) 16, name);
 
         return 0;
@@ -4447,7 +4447,7 @@ ngx_ssl_ticket_key_callback(ngx_ssl_conn
     found:
 
         ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                       "ssl session ticket decrypt, key: \"%*xs\"%s",
+                       "ssl ticket decrypt, key: \"%*xs\"%s",
                        (size_t) 16, key[i].name, (i == 0) ? " (default)" : "");
 
         if (key[i].size == 48) {



More information about the nginx-devel mailing list