168651Skris=pod
268651Skris
368651Skris=head1 NAME
468651Skris
568651SkrisSSL_get_ciphers, SSL_get_cipher_list - get list of available SSL_CIPHERs
668651Skris
768651Skris=head1 SYNOPSIS
868651Skris
968651Skris #include <openssl/ssl.h>
1068651Skris
11160814Ssimon STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl);
12160814Ssimon const char *SSL_get_cipher_list(const SSL *ssl, int priority);
1368651Skris
1468651Skris=head1 DESCRIPTION
1568651Skris
1668651SkrisSSL_get_ciphers() returns the stack of available SSL_CIPHERs for B<ssl>,
1768651Skrissorted by preference. If B<ssl> is NULL or no ciphers are available, NULL
1868651Skrisis returned.
1968651Skris
2068651SkrisSSL_get_cipher_list() returns a pointer to the name of the SSL_CIPHER
2168651Skrislisted for B<ssl> with B<priority>. If B<ssl> is NULL, no ciphers are
2268651Skrisavailable, or there are less ciphers than B<priority> available, NULL
2368651Skrisis returned.
2468651Skris
2568651Skris=head1 NOTES
2668651Skris
2768651SkrisThe details of the ciphers obtained by SSL_get_ciphers() can be obtained using
2868651Skristhe L<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)> family of functions.
2968651Skris
3068651SkrisCall SSL_get_cipher_list() with B<priority> starting from 0 to obtain the
3168651Skrissorted list of available ciphers, until NULL is returned.
3268651Skris
3368651Skris=head1 RETURN VALUES
3468651Skris
3568651SkrisSee DESCRIPTION
3668651Skris
3768651Skris=head1 SEE ALSO
3868651Skris
3968651SkrisL<ssl(3)|ssl(3)>, L<SSL_CTX_set_cipher_list(3)|SSL_CTX_set_cipher_list(3)>,
4068651SkrisL<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)>
4168651Skris
4268651Skris=cut
43