2
0

SSL_get_version.pod 645 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. =pod
  2. =head1 NAME
  3. SSL_get_version - get the protocol version of a connection.
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. const char *SSL_get_version(const SSL *ssl);
  7. =head1 DESCRIPTION
  8. SSL_get_cipher_version() returns the name of the protocol used for the
  9. connection B<ssl>.
  10. =head1 RETURN VALUES
  11. The following strings can occur:
  12. =over 4
  13. =item SSLv2
  14. The connection uses the SSLv2 protocol.
  15. =item SSLv3
  16. The connection uses the SSLv3 protocol.
  17. =item TLSv1
  18. The connection uses the TLSv1 protocol.
  19. =item unknown
  20. This indicates that no version has been set (no connection established).
  21. =back
  22. =head1 SEE ALSO
  23. L<ssl(3)|ssl(3)>
  24. =cut