1SSL_get_current_cipher(3)           OpenSSL          SSL_get_current_cipher(3)
2
3
4

NAME

6       SSL_get_current_cipher, SSL_get_cipher, SSL_get_cipher_name,
7       SSL_get_cipher_bits, SSL_get_cipher_version - get SSL_CIPHER of a
8       connection
9

SYNOPSIS

11        #include <openssl/ssl.h>
12
13        SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
14        #define SSL_get_cipher(s) \
15                       SSL_CIPHER_get_name(SSL_get_current_cipher(s))
16        #define SSL_get_cipher_name(s) \
17                       SSL_CIPHER_get_name(SSL_get_current_cipher(s))
18        #define SSL_get_cipher_bits(s,np) \
19                       SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)
20        #define SSL_get_cipher_version(s) \
21                       SSL_CIPHER_get_version(SSL_get_current_cipher(s))
22

DESCRIPTION

24       SSL_get_current_cipher() returns a pointer to an SSL_CIPHER object
25       containing the description of the actually used cipher of a connection
26       established with the ssl object.
27
28       SSL_get_cipher() and SSL_get_cipher_name() are identical macros to
29       obtain the name of the currently used cipher. SSL_get_cipher_bits() is
30       a macro to obtain the number of secret/algorithm bits used and
31       SSL_get_cipher_version() returns the protocol name.  See
32       SSL_CIPHER_get_name(3) for more details.
33

RETURN VALUES

35       SSL_get_current_cipher() returns the cipher actually used or NULL, when
36       no session has been established.
37

SEE ALSO

39       ssl(3), SSL_CIPHER_get_name(3)
40
41
42
431.0.2o                            2018-03-27         SSL_get_current_cipher(3)
Impressum