Method: OpenSSL::SSL::SSLSocket#ssl_version
- Defined in:
- ext/rubysl/openssl/ossl_ssl.c
#ssl_version ⇒ String
Returns a String representing the SSL/TLS version that was negotiated for the connection, for example “TLSv1.2”.
1993 1994 1995 1996 1997 1998 1999 2000 2001 |
# File 'ext/rubysl/openssl/ossl_ssl.c', line 1993 static VALUE ossl_ssl_get_version(VALUE self) { SSL *ssl; GetSSL(self, ssl); return rb_str_new2(SSL_get_version(ssl)); } |