boost::corosio::tls_context::set_max_protocol_version

Set the maximum TLS protocol version.

Synopsis

std::error_code
set_max_protocol_version(tls_version v);

Description

Connections will not negotiate protocol versions newer than this. The default allows the newest supported version.

Return Value

Success, or an error if the version is not supported by the backend.

Parameters

Name Description

v

The maximum protocol version to accept.

See Also

set_min_protocol_version

Created with MrDocs