SSL_CTX_set_ssl_version.pod revision 68651
1180509Sbrueffer=pod 2180509Sbrueffer 3180509Sbrueffer=head1 NAME 4180509Sbrueffer 5180509SbruefferSSL_CTX_set_ssl_version, SSL_set_ssl_method, SSL_get_ssl_method 6180509Sbrueffer- choose a new TLS/SSL method 7180509Sbrueffer 8180509Sbrueffer=head1 SYNOPSIS 9180509Sbrueffer 10180509Sbrueffer #include <openssl/ssl.h> 11180509Sbrueffer 12180509Sbrueffer int SSL_CTX_set_ssl_version(SSL_CTX *ctx, SSL_METHOD *method); 13180509Sbrueffer int SSL_set_ssl_method(SSL *s, SSL_METHOD *method); 14180509Sbrueffer SSL_METHOD *SSL_get_ssl_method(SSL *ssl); 15180509Sbrueffer 16180509Sbrueffer=head1 DESCRIPTION 17180509Sbrueffer 18180509SbruefferSSL_CTX_set_ssl_version() sets a new default TLS/SSL B<method> for SSL objects 19180509Sbrueffernewly created from this B<ctx>. SSL objects already created with 20180509SbruefferL<SSL_new(3)|SSL_new(3)> are not affected, except when SSL_clear() is 21180509Sbruefferbeing called. 22180509Sbrueffer 23180509SbruefferSSL_set_ssl_method() sets a new TLS/SSL B<method> for a particular B<ssl> 24180509Sbruefferobject. It may be reset, when SSL_clear() is called. 25180509Sbrueffer 26180509SbruefferSSL_get_ssl_method() returns a function pointer to the TLS/SSL method 27180509Sbruefferset in B<ssl>. 28180509Sbrueffer 29180509Sbrueffer=head1 NOTES 30180509Sbrueffer 31180509SbruefferThe available B<method> choices are described in 32180509SbruefferL<SSL_CTX_new(3)|SSL_CTX_new(3)>. 33228370Syongari 34180509SbruefferWhen SSL_clear() is called and no session is connected to an SSL object, 35180509Sbruefferthe method of the SSL object is reset to the method currently set in 36180509Sbruefferthe corresponding SSL_CTX object. 37180509Sbrueffer 38180509Sbrueffer=head1 RETURN VALUES 39180509Sbrueffer 40180509SbruefferThe following return values can occur for SSL_CTX_set_ssl_version() 41180509Sbruefferand SSL_set_ssl_method(): 42180509Sbrueffer 43180509Sbrueffer=over 4 44180509Sbrueffer 45180509Sbrueffer=item 0 46180509Sbrueffer 47180509SbruefferThe new choice failed, check the error stack to find out the reason. 48180509Sbrueffer 49180509Sbrueffer=item 1 50180509Sbrueffer 51180509SbruefferThe operation succeeded. 52180509Sbrueffer 53180509Sbrueffer=back 54180509Sbrueffer 55180509Sbrueffer=head1 SEE ALSO 56180509Sbrueffer 57181362SbruefferL<SSL_CTX_new(3)|SSL_CTX_new(3)>, L<SSL_new(3)|SSL_new(3)>, 58181362SbruefferL<SSL_clear(3)|SSL_clear(3)>, L<ssl(3)|ssl(3)> 59181362Sbrueffer 60181362Sbrueffer=cut 61181362Sbrueffer