5 SSL_get_version - get the protocol version of a connection.
9 #include <openssl/ssl.h>
11 const char *SSL_get_version(const SSL *ssl);
15 SSL_get_version() returns the name of the protocol used for the
16 connection B<ssl>. It should only be called after the initial handshake has been
17 completed. Prior to that the results returned from this function may be
22 The following strings can be returned:
28 The connection uses the SSLv2 protocol.
32 The connection uses the SSLv3 protocol.
36 The connection uses the TLSv1.0 protocol.
40 The connection uses the TLSv1.1 protocol.
44 The connection uses the TLSv1.2 protocol.
48 This indicates an unknown protocol version.