|
Packit Service |
084de1 |
=pod
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 NAME
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_current_cipher, SSL_get_cipher_name, SSL_get_cipher,
|
|
Packit Service |
084de1 |
SSL_get_cipher_bits, SSL_get_cipher_version,
|
|
Packit Service |
084de1 |
SSL_get_pending_cipher - get SSL_CIPHER of a connection
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 SYNOPSIS
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
#include <openssl/ssl.h>
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
|
|
Packit Service |
084de1 |
SSL_CIPHER *SSL_get_pending_cipher(const SSL *ssl);
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
const char *SSL_get_cipher_name(const SSL *s);
|
|
Packit Service |
084de1 |
const char *SSL_get_cipher(const SSL *s);
|
|
Packit Service |
084de1 |
int SSL_get_cipher_bits(const SSL *s, int *np);
|
|
Packit Service |
084de1 |
const char *SSL_get_cipher_version(const SSL *s);
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 DESCRIPTION
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_current_cipher() returns a pointer to an SSL_CIPHER object containing
|
|
Packit Service |
084de1 |
the description of the actually used cipher of a connection established with
|
|
Packit Service |
084de1 |
the B<ssl> object.
|
|
Packit Service |
084de1 |
See L<SSL_CIPHER_get_name(3)> for more details.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_cipher_name() obtains the
|
|
Packit Service |
084de1 |
name of the currently used cipher.
|
|
Packit Service |
084de1 |
SSL_get_cipher() is identical to SSL_get_cipher_name().
|
|
Packit Service |
084de1 |
SSL_get_cipher_bits() is a
|
|
Packit Service |
084de1 |
macro to obtain the number of secret/algorithm bits used and
|
|
Packit Service |
084de1 |
SSL_get_cipher_version() returns the protocol name.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_pending_cipher() returns a pointer to an SSL_CIPHER object containing
|
|
Packit Service |
084de1 |
the description of the cipher (if any) that has been negotiated for future use
|
|
Packit Service |
084de1 |
on the connection established with the B<ssl> object, but is not yet in use.
|
|
Packit Service |
084de1 |
This may be the case during handshake processing, when control flow can be
|
|
Packit Service |
084de1 |
returned to the application via any of several callback methods. The internal
|
|
Packit Service |
084de1 |
sequencing of handshake processing and callback invocation is not guaranteed
|
|
Packit Service |
084de1 |
to be stable from release to release, and at present only the callback set
|
|
Packit Service |
084de1 |
by SSL_CTX_set_alpn_select_cb() is guaranteed to have a non-NULL return value.
|
|
Packit Service |
084de1 |
Other callbacks may be added to this list over time.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 RETURN VALUES
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_current_cipher() returns the cipher actually used, or NULL if
|
|
Packit Service |
084de1 |
no session has been established.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_pending_cipher() returns the cipher to be used at the next change
|
|
Packit Service |
084de1 |
of cipher suite, or NULL if no such cipher is known.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 NOTES
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
SSL_get_cipher, SSL_get_cipher_bits, SSL_get_cipher_version, and
|
|
Packit Service |
084de1 |
SSL_get_cipher_name are implemented as macros.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 SEE ALSO
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
L<ssl(7)>, L<SSL_CIPHER_get_name(3)>
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=head1 COPYRIGHT
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
Licensed under the OpenSSL license (the "License"). You may not use
|
|
Packit Service |
084de1 |
this file except in compliance with the License. You can obtain a copy
|
|
Packit Service |
084de1 |
in the file LICENSE in the source distribution or at
|
|
Packit Service |
084de1 |
L<https://www.openssl.org/source/license.html>.
|
|
Packit Service |
084de1 |
|
|
Packit Service |
084de1 |
=cut
|