All Manuals > LispWorks® User Guide and Reference Manual > 32 The COMM Package

ssl-connection-protocol-version Function

Summary

Returns a keyword indicating the protocol version that is used by the connection.

Package

comm

Signature

ssl-connection-protocol-version ssl-connection => keyword

Arguments
ssl-connection
A SSL connection (socket-stream or async-io-state).
Values
keyword
A keyword.
Description

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