SSL_get_ciphers.pod 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. =pod
  2. =head1 NAME
  3. SSL_get_ciphers, SSL_get_cipher_list - get list of available SSL_CIPHERs
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl);
  7. const char *SSL_get_cipher_list(const SSL *ssl, int priority);
  8. =head1 DESCRIPTION
  9. SSL_get_ciphers() returns the stack of available SSL_CIPHERs for B<ssl>,
  10. sorted by preference. If B<ssl> is NULL or no ciphers are available, NULL
  11. is returned.
  12. SSL_get_cipher_list() returns a pointer to the name of the SSL_CIPHER
  13. listed for B<ssl> with B<priority>. If B<ssl> is NULL, no ciphers are
  14. available, or there are less ciphers than B<priority> available, NULL
  15. is returned.
  16. =head1 NOTES
  17. The details of the ciphers obtained by SSL_get_ciphers() can be obtained using
  18. the L<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)> family of functions.
  19. Call SSL_get_cipher_list() with B<priority> starting from 0 to obtain the
  20. sorted list of available ciphers, until NULL is returned.
  21. =head1 RETURN VALUES
  22. See DESCRIPTION
  23. =head1 SEE ALSO
  24. L<ssl(3)|ssl(3)>, L<SSL_CTX_set_cipher_list(3)|SSL_CTX_set_cipher_list(3)>,
  25. L<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)>
  26. =cut