RETURN VALUES SSL_get_current_cipher() returns the cipher actually used or NULL, when no session has been established.
staticconstchar*openssl_iostream_get_security_string(struct ssl_iostream *ssl_io){constSSL_CIPHER *cipher;#ifdefHAVE_SSL_COMPRESSIONconstCOMP_METHOD *comp;#endifconstchar*comp_str;intbits, alg_bits;if(!ssl_io->handshaked)return""; cipher =SSL_get_current_cipher(ssl_io->ssl); bits = SSL_...