Browse code

Add ports for SSL_ERROR_SSL

While troubleshooting a certificate issue we found it helpful to understand the port as well as the address for source and destination. I shortened source to src and destination to dst to avoid increasing the message output length also it's helpful for the two words to be equal length while reading... hope this is helpful to someone else...

Todd authored on 06/10/2021 12:31:32 • GitHub committed on 06/10/2021 12:31:32
Showing 1 changed files
... ...
@@ -1330,10 +1330,10 @@ ssl_read_skipped:
1330 1330
 			TLS_ERR(err_src);
1331 1331
 			memset(ip_buf, 0, sizeof(ip_buf));
1332 1332
 			ip_addr2sbuf(&(c->rcv.src_ip), ip_buf, sizeof(ip_buf));
1333
-			ERR("source IP: %s\n", ip_buf);
1333
+			ERR("src IP: %s:%d\n", ip_buf, c->rcv.src_port);
1334 1334
 			memset(ip_buf, 0, sizeof(ip_buf));
1335 1335
 			ip_addr2sbuf(&(c->rcv.dst_ip), ip_buf, sizeof(ip_buf));
1336
-			ERR("destination IP: %s\n", ip_buf);
1336
+			ERR("dst IP: %s:%d\n", ip_buf, c->rcv.dst_port);
1337 1337
 
1338 1338
 			goto error;
1339 1339
 #if OPENSSL_VERSION_NUMBER >= 0x00907000L /*0.9.7*/