1*2175Sjp161948=pod 2*2175Sjp161948 3*2175Sjp161948=head1 NAME 4*2175Sjp161948 5*2175Sjp161948SSL_get_version - get the protocol version of a connection. 6*2175Sjp161948 7*2175Sjp161948=head1 SYNOPSIS 8*2175Sjp161948 9*2175Sjp161948 #include <openssl/ssl.h> 10*2175Sjp161948 11*2175Sjp161948 const char *SSL_get_version(const SSL *ssl); 12*2175Sjp161948 13*2175Sjp161948=head1 DESCRIPTION 14*2175Sjp161948 15*2175Sjp161948SSL_get_cipher_version() returns the name of the protocol used for the 16*2175Sjp161948connection B<ssl>. 17*2175Sjp161948 18*2175Sjp161948=head1 RETURN VALUES 19*2175Sjp161948 20*2175Sjp161948The following strings can occur: 21*2175Sjp161948 22*2175Sjp161948=over 4 23*2175Sjp161948 24*2175Sjp161948=item SSLv2 25*2175Sjp161948 26*2175Sjp161948The connection uses the SSLv2 protocol. 27*2175Sjp161948 28*2175Sjp161948=item SSLv3 29*2175Sjp161948 30*2175Sjp161948The connection uses the SSLv3 protocol. 31*2175Sjp161948 32*2175Sjp161948=item TLSv1 33*2175Sjp161948 34*2175Sjp161948The connection uses the TLSv1 protocol. 35*2175Sjp161948 36*2175Sjp161948=item unknown 37*2175Sjp161948 38*2175Sjp161948This indicates that no version has been set (no connection established). 39*2175Sjp161948 40*2175Sjp161948=back 41*2175Sjp161948 42*2175Sjp161948=head1 SEE ALSO 43*2175Sjp161948 44*2175Sjp161948L<ssl(3)|ssl(3)> 45*2175Sjp161948 46*2175Sjp161948=cut 47