SSL_set_connect_state.pod revision 76866
176866Skris=pod
276866Skris
376866Skris=head1 NAME
476866Skris
576866SkrisSSL_set_connect_state, SSL_get_accept_state - prepare SSL object to work in client or server mode
676866Skris
776866Skris=head1 SYNOPSIS
876866Skris
976866Skris #include <openssl/ssl.h>
1076866Skris
1176866Skris void SSL_set_connect_state(SSL *ssl);
1276866Skris
1376866Skris void SSL_set_accept_state(SSL *ssl);
1476866Skris
1576866Skris=head1 DESCRIPTION
1676866Skris
1776866SkrisSSL_set_connect_state() B<ssl> to work in client mode.
1876866Skris
1976866SkrisSSL_set_accept_state() B<ssl> to work in server mode.
2076866Skris
2176866Skris=head1 NOTES
2276866Skris
2376866SkrisWhen the SSL_CTX object was created with L<SSL_CTX_new(3)|SSL_CTX_new(3)>,
2476866Skrisit was either assigned a dedicated client method, a dedicated server
2576866Skrismethod, or a generic method, that can be used for both client and
2676866Skrisserver connections. (The method might have been changed with
2776866SkrisL<SSL_CTX_set_ssl_version(3)|SSL_CTX_set_ssl_version(3)> or
2876866SkrisSSL_set_ssl_method().)
2976866Skris
3076866SkrisIn order to successfully accomplish the handshake, the SSL routines need
3176866Skristo know whether they should act in server or client mode. If the generic
3276866Skrismethod was used, this is not clear from the method itself and must be set
3376866Skriswith either SSL_set_connect_state() or SSL_set_accept_state(). If these
3476866Skrisroutines are not called, the default value set when L<SSL_new(3)|SSL_new(3)>
3576866Skrisis called is server mode.
3676866Skris
3776866Skris=head1 RETURN VALUES
3876866Skris
3976866SkrisSSL_set_connect_state() and SSL_set_accept_state() do not return diagnostic
4076866Skrisinformation.
4176866Skris
4276866Skris=head1 SEE ALSO
4376866Skris
4476866SkrisL<ssl(3)|ssl(3)>, L<SSL_new(3)|SSL_new(3)>, L<SSL_CTX_new(3)|SSL_CTX_new(3)>,
4576866SkrisL<SSL_CTX_set_ssl_version(3)|SSL_CTX_set_ssl_version(3)>
4676866Skris
4776866Skris=cut
48