Index: tls.c ================================================================== --- tls.c +++ tls.c @@ -1466,10 +1466,16 @@ Tcl_ListObjAppendElement(interp, objPtr, Tcl_NewStringObj("cipher", -1)); Tcl_ListObjAppendElement(interp, objPtr, Tcl_NewStringObj(SSL_get_cipher(statePtr->ssl), -1)); } + + Tcl_ListObjAppendElement(interp, objPtr, + Tcl_NewStringObj("version", -1)); + Tcl_ListObjAppendElement(interp, objPtr, + Tcl_NewStringObj(SSL_get_version(statePtr->ssl), -1)); + Tcl_SetObjResult( interp, objPtr); return TCL_OK; clientData = clientData; } Index: tls.htm ================================================================== --- tls.htm +++ tls.htm @@ -147,10 +147,13 @@ server channels.
sbits n
The number of bits used for the session key.
certificate n
The PEM encoded certificate.
+
version value
+
The protocol version used for the connection: + SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2, unknown
tls::import channel