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