Returns a keyword indicating the protocol version that is used by the connection.
comm
ssl-connection-protocol-version ssl-connection => keyword
ssl-connection⇩ |
A SSL connection (socket-stream or async-io-state). |
keyword |
A keyword. |
The function ssl-connection-protocol-version
returns a keyword indicating which protocol version is used by ssl-connection. The result will be one :tls-v1-3
, :tls-v1-2
, :tls-v1-1
, :tls-v1
, v3
(for SSL 3.0) or :unknown
.
ssl-connection-protocol-version
can only be called after the first handshake of the connection, otherwise the result is unreliable. It signals an error if ssl-connection is not a SSL connection.
See 25.8.6 Keyword arguments for use with SSL for how to specify which protocol version is acceptable.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26