boost::corosio::tls_context::set_min_protocol_version

Set the minimum TLS protocol version.

Synopsis

std::error_code
set_min_protocol_version(tls_version v);

Description

Connections will reject protocol versions older than this. The default allows TLS 1.2 and newer.

Example

// Require TLS 1.3 minimum
ctx.set_min_protocol_version( tls_version::tls_1_3 );

Return Value

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

Parameters

Name Description

v

The minimum protocol version to accept.

See Also

set_max_protocol_version

Created with MrDocs