2015-12-06 16:56:41 +00:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2015-12-29 08:19:24 +00:00
|
|
|
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
|
2015-12-06 16:56:41 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/ssl.h>
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-12-29 08:19:24 +00:00
|
|
|
The functions set the minimum and maximum supported portocol versions
|
|
|
|
for the B<ctx> or B<ssl>.
|
2016-01-11 01:15:04 +00:00
|
|
|
This works in combination with the options set via
|
|
|
|
L<SSL_CTX_set_options(3)> that also make it possible to disable
|
|
|
|
specific protocol versions.
|
2015-12-29 08:19:24 +00:00
|
|
|
Use these functions instead of disabling specific protocol versions.
|
2015-12-06 16:56:41 +00:00
|
|
|
|
2015-12-29 08:19:24 +00:00
|
|
|
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.
|
2015-12-06 16:56:41 +00:00
|
|
|
|
2015-12-29 08:19:24 +00:00
|
|
|
Currently supported versions are B<SSL3_VERSION>, B<TLS1_VERSION>,
|
|
|
|
B<TLS1_1_VERSION>, B<TLS1_2_VERSION> for TLS and B<DTLS1_VERSION>,
|
|
|
|
B<DTLS1_2_VERSION> for DTLS.
|
2015-12-06 16:56:41 +00:00
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
2015-12-29 08:19:24 +00:00
|
|
|
Both functions return 1 on success and 0 on failure.
|
2015-12-06 16:56:41 +00:00
|
|
|
|
|
|
|
=head1 NOTES
|
|
|
|
|
|
|
|
All these functions are implemented using macros.
|
|
|
|
|
|
|
|
=head1 HISTORY
|
|
|
|
|
|
|
|
The functions were added in OpenSSL 1.1.0
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<SSL_CTX_set_options(3)>, L<SSL_CONF_cmd(3)>
|
|
|
|
|
|
|
|
=cut
|