SSL_get_version.pod 762 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_version() returns the name of the protocol used for the
  9. connection B<ssl>.
  10. =head1 RETURN VALUES
  11. The following strings can be returned:
  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.0 protocol.
  19. =item TLSv1.1
  20. The connection uses the TLSv1.1 protocol.
  21. =item TLSv1.2
  22. The connection uses the TLSv1.2 protocol.
  23. =item unknown
  24. This indicates that no version has been set (no connection established).
  25. =back
  26. =head1 SEE ALSO
  27. L<ssl(3)|ssl(3)>
  28. =cut