=pod =head1 NAME SSL_CTX_set_min_proto_version, SSL_CTX_set_max_proto_version, SSL_set_min_proto_version, SSL_set_max_proto_version - Set minimum and maximum supported protocol version =head1 SYNOPSIS #include int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version); int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version); int SSL_set_min_proto_version(SSL *ssl, int version); int SSL_set_max_proto_version(SSL *ssl, int version); =head1 DESCRIPTION The functions set the minimum and maximum supported portocol versions for the B or B. This works in combination with the options set via L that also make it possible to disable specific protocol versions. Use these functions instead of disabling specific protocol versions. Setting the minimum or maximum version to 0, will enable protocol versions down to the lowest version, or up to the highest version supported by the library, respectively. Currently supported versions are B, B, B, B for TLS and B, B for DTLS. =head1 RETURN VALUES Both functions return 1 on success and 0 on failure. =head1 NOTES All these functions are implemented using macros. =head1 HISTORY The functions were added in OpenSSL 1.1.0 =head1 SEE ALSO L, L =cut