adium/adium

Also log the encryption details to the debug log.
adium-1.6
2013-06-25, Thijs Alkemade
fcf2f55a4bb2
Parents 91e8ae66ed76
Children bcbe9530aa5c
Also log the encryption details to the debug log.
--- 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;