1ebfedea0SLionel Sambuc=pod 2ebfedea0SLionel Sambuc 3ebfedea0SLionel Sambuc=head1 NAME 4ebfedea0SLionel Sambuc 5ebfedea0SLionel SambucSSL_get_version - get the protocol version of a connection. 6ebfedea0SLionel Sambuc 7ebfedea0SLionel Sambuc=head1 SYNOPSIS 8ebfedea0SLionel Sambuc 9ebfedea0SLionel Sambuc #include <openssl/ssl.h> 10ebfedea0SLionel Sambuc 11ebfedea0SLionel Sambuc const char *SSL_get_version(const SSL *ssl); 12ebfedea0SLionel Sambuc 13ebfedea0SLionel Sambuc=head1 DESCRIPTION 14ebfedea0SLionel Sambuc 15*0a6a1f1dSLionel SambucSSL_get_version() returns the name of the protocol used for the 16ebfedea0SLionel Sambucconnection B<ssl>. 17ebfedea0SLionel Sambuc 18ebfedea0SLionel Sambuc=head1 RETURN VALUES 19ebfedea0SLionel Sambuc 20*0a6a1f1dSLionel SambucThe following strings can be returned: 21ebfedea0SLionel Sambuc 22ebfedea0SLionel Sambuc=over 4 23ebfedea0SLionel Sambuc 24ebfedea0SLionel Sambuc=item SSLv2 25ebfedea0SLionel Sambuc 26ebfedea0SLionel SambucThe connection uses the SSLv2 protocol. 27ebfedea0SLionel Sambuc 28ebfedea0SLionel Sambuc=item SSLv3 29ebfedea0SLionel Sambuc 30ebfedea0SLionel SambucThe connection uses the SSLv3 protocol. 31ebfedea0SLionel Sambuc 32ebfedea0SLionel Sambuc=item TLSv1 33ebfedea0SLionel Sambuc 34*0a6a1f1dSLionel SambucThe connection uses the TLSv1.0 protocol. 35*0a6a1f1dSLionel Sambuc 36*0a6a1f1dSLionel Sambuc=item TLSv1.1 37*0a6a1f1dSLionel Sambuc 38*0a6a1f1dSLionel SambucThe connection uses the TLSv1.1 protocol. 39*0a6a1f1dSLionel Sambuc 40*0a6a1f1dSLionel Sambuc=item TLSv1.2 41*0a6a1f1dSLionel Sambuc 42*0a6a1f1dSLionel SambucThe connection uses the TLSv1.2 protocol. 43ebfedea0SLionel Sambuc 44ebfedea0SLionel Sambuc=item unknown 45ebfedea0SLionel Sambuc 46ebfedea0SLionel SambucThis indicates that no version has been set (no connection established). 47ebfedea0SLionel Sambuc 48ebfedea0SLionel Sambuc=back 49ebfedea0SLionel Sambuc 50ebfedea0SLionel Sambuc=head1 SEE ALSO 51ebfedea0SLionel Sambuc 52ebfedea0SLionel SambucL<ssl(3)|ssl(3)> 53ebfedea0SLionel Sambuc 54ebfedea0SLionel Sambuc=cut 55