mod_c2s, mod_s2s: Log cipher and encryption info in a more compact and (hopefully) less confusing way
authorKim Alvefur <zash@zash.se>
Wed, 14 Aug 2013 15:00:36 +0200
changeset 5801 224644752bf4
parent 5800 3a48acbcb7f3
child 5802 5b79710dd5a1
mod_c2s, mod_s2s: Log cipher and encryption info in a more compact and (hopefully) less confusing way
plugins/mod_c2s.lua
plugins/mod_s2s/mod_s2s.lua
--- a/plugins/mod_c2s.lua	Wed Aug 14 14:53:50 2013 +0200
+++ b/plugins/mod_c2s.lua	Wed Aug 14 15:00:36 2013 +0200
@@ -73,8 +73,7 @@
 		local sock = session.conn:socket();
 		if sock.info then
 			local info = sock:info();
-			(session.log or log)("info", "Stream encrypted (%s) with %s, authenticated with %s and exchanged keys with %s",
-				info.protocol, info.encryption, info.authentication, info.key);
+			(session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher);
 			session.compressed = info.compression;
 		else
 			(session.log or log)("info", "Stream encrypted");
--- a/plugins/mod_s2s/mod_s2s.lua	Wed Aug 14 14:53:50 2013 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Wed Aug 14 15:00:36 2013 +0200
@@ -287,8 +287,7 @@
 		local sock = session.conn:socket();
 		if sock.info then
 			local info = sock:info();
-			(session.log or log)("info", "Stream encrypted (%s) with %s, authenticated with %s and exchanged keys with %s",
-				info.protocol, info.encryption, info.authentication, info.key);
+			(session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher);
 			session.compressed = info.compression;
 		else
 			(session.log or log)("info", "Stream encrypted");