adium 5589:fcf2f55a4bb2: Also log the encryption details to the ...

commits at adium.im commits at adium.im
Tue Jun 25 19:12:28 UTC 2013


details:	http://hg.adium.im/adium/rev/fcf2f55a4bb2
revision:	5589:fcf2f55a4bb2
branch:		adium-1.6
author:		Thijs Alkemade <me at thijsalkema.de>
date:		Tue Jun 25 21:11:54 2013 +0200

Also log the encryption details to the debug log.

diffs (27 lines):

diff -r 91e8ae66ed76 -r fcf2f55a4bb2 Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c
--- a/Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c	Tue Jun 25 20:27:07 2013 +0200
+++ b/Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c	Tue Jun 25 21:11:54 2013 +0200
@@ -176,7 +176,23 @@
 		purple_ssl_close(gsc);
 		return;
 	}
+	
+	SSLCipherSuite cipher;
+	SSLProtocol protocol;
+	
+	err = SSLGetNegotiatedCipher(cdsa_data->ssl_ctx, &cipher);
+	
+	if (err == noErr) {
+		err = SSLGetNegotiatedProtocolVersion(cdsa_data->ssl_ctx, &protocol);
 		
+		purple_debug_info("cdsa", "Your connection is using %s with %s encryption, using %s for message authentication and %s key exchange (%X).\n",
+						  SSLVersionToString(protocol),
+						  SSLCipherName(cipher),
+						  SSLMACName(cipher),
+						  SSLKeyExchangeName(cipher),
+						  cipher);
+	}
+	
 	purple_input_remove(cdsa_data->handshake_handler);
 	cdsa_data->handshake_handler = 0;
 	




More information about the commits mailing list