NAME
SSLgetcurrentcipher, SSLgetcipher, SSLgetciphername,SSLgetcipherbits, SSLgetcipherversion - get SSLCIPHER of a
connectionSYNOPSIS
#include
SSLCIPHER *SSLgetcurrentcipher(const SSL *ssl);#define SSLgetcipher(s) \
SSLCIPHERgetname(SSLgetcurrentcipher(s))#define SSLgetciphername(s) \
SSLCIPHERgetname(SSLgetcurrentcipher(s))#define SSLgetcipherbits(s,np) \
SSLCIPHERgetbits(SSLgetcurrentcipher(s),np)#define SSLgetcipherversion(s) \
SSLCIPHERgetversion(SSLgetcurrentcipher(s))DESCRIPTION
SSLgetcurrentcipher() returns a pointer to an SSLCIPHER object containing the description of the actually used cipher of a connection established with the ssssll object. SSLgetcipher() and SSLgetciphername() are identical macros to obtain the name of the currently used cipher. SSLgetcipherbits() is a macro to obtain the number of secret/algorithm bits used and SSLgetcipherversion() returns the protocol name. See SSLCIPHERgetname(3) for more details.RETURN VALUES
SSLgetcurrentcipher() returns the cipher actually used or NULL, when no session has been established.SEE ALSO
ssl(3), SSLCIPHERgetname(3)0.9.7l 2005-03-30 SSLgetcurrentcipher(3)