5 SSL_get_current_cipher, SSL_get_cipher_name, SSL_get_cipher,
6 SSL_get_cipher_bits, SSL_get_cipher_version - get SSL_CIPHER of a connection
10 #include <openssl/ssl.h>
12 SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
14 const char *SSL_get_cipher_name(const SSL *s);
15 const char *SSL_get_cipher(const SSL *s);
16 int SSL_get_cipher_bits(const SSL *s, int *np) \
17 const char *SSL_get_cipher_version(const SSL *s);
21 SSL_get_current_cipher() returns a pointer to an SSL_CIPHER object containing
22 the description of the actually used cipher of a connection established with
24 See L<SSL_CIPHER_get_name(3)> for more details.
26 SSL_get_cipher_name() obtains the
27 name of the currently used cipher.
28 SSL_get_cipher() is identical to SSL_get_cipher_name().
29 SSL_get_cipher_bits() is a
30 macro to obtain the number of secret/algorithm bits used and
31 SSL_get_cipher_version() returns the protocol name.
35 SSL_get_current_cipher() returns the cipher actually used, or NULL if
36 no session has been established.
40 These are implemented as macros.
44 L<ssl(3)>, L<SSL_CIPHER_get_name(3)>
48 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
50 Licensed under the OpenSSL license (the "License"). You may not use
51 this file except in compliance with the License. You can obtain a copy
52 in the file LICENSE in the source distribution or at
53 L<https://www.openssl.org/source/license.html>.