582a17d662
Includes addition of the various options to s_server/s_client. Also adds one of the new TLS1.3 ciphersuites. This isn't "real" TLS1.3!! It's identical to TLS1.2 apart from the protocol and the ciphersuite...and the ciphersuite is just a renamed TLS1.2 one (not a "real" TLS1.3 ciphersuite). Reviewed-by: Rich Salz <rsalz@openssl.org>
60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
=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 <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
|
|
|
|
The functions set the minimum and maximum supported protocol versions
|
|
for the B<ctx> or B<ssl>.
|
|
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.
|
|
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<SSL3_VERSION>, B<TLS1_VERSION>,
|
|
B<TLS1_1_VERSION>, B<TLS1_2_VERSION>, B<TLS1_3_VERSION> for TLS and
|
|
B<DTLS1_VERSION>, B<DTLS1_2_VERSION> for DTLS.
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
These 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<SSL_CTX_set_options(3)>, L<SSL_CONF_cmd(3)>
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
Licensed under the OpenSSL license (the "License"). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file LICENSE in the source distribution or at
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
=cut
|