5.5.24.2. TLSOptions methods

Method __init__(self, tls_min_version, tls_max_version, ciphers, ciphers_tlsv1_3, shared_groups, timeout, session_cache_size, disable_session_cache, disable_ticket, disable_compression)

This constructor defines an TLSOptions with the specified parameters.

Arguments of __init__
ciphers (enum)
Default: n/a
Specifies the allowed ciphers. For details, see Table 5.29, Constants for cipher selection .

ciphers_tlsv1_3 (enum)
Default: n/a
Specifies the allowed ciphers for TLSv1.3 connections. For details, see Table 5.30, Constants for TLSv1.3 cipher selection .

disable_session_cache (boolean)
Default: TRUE
Do not store session information in the session cache. Set this option to FALSE to enable TLS session reuse. Please be mind that this option is ignored in TLSv1.3 as it does not support session IDs.

disable_ticket (boolean)
Default: TRUE
Session tickets are a method for TLS session reuse, described in RFC 5077. Set this option to FALSE to enable TLS session reuse using session tickets.

session_cache_size (integer)
Default: 20480
The number of sessions stored in the session cache for TLS session reuse. Please be mind that this option is ignored in TLSv1.3 as it does not support session IDs.

shared_groups (enum)
Default: n/a
Specifies the allowed shared groups. For details, see Table 5.31, Constants for shared group selection .

timeout (integer)
Default: 300
Drop idle connection if the timeout value (in seconds) expires.

tls_max_version (enum)
Default: TLS_VERSION_1_3
Specify the maximum supported TLS protocol version.

tls_min_version (enum)
Default: TLS_VERSION_1_2
Specify the minimum supported TLS protocol version.