OpenSSL.vip

Cryptography and SSL/TLS Toolkit

NAME

SSL_set_connect_state, SSL_set_accept_state, SSL_is_server - functions for manipulating and examining the client or server mode of an SSL object

SYNOPSIS

 #include <openssl/ssl.h>
 
 void SSL_set_connect_state(SSL *ssl);
 
 void SSL_set_accept_state(SSL *ssl);
 
 int SSL_is_server(const SSL *ssl);

DESCRIPTION

SSL_set_connect_state() sets ssl to work in client mode.

SSL_set_accept_state() sets ssl to work in server mode.

SSL_is_server() checks if ssl is working in server mode.

NOTES

When the SSL_CTX object was created with SSL_CTX_set_ssl_version(3) or SSL_connect(3) or SSL_write_ex(3), SSL_read_ex(3), or SSL_CTX_new(3). If a generic method or a dedicated server method was passed to RETURN VALUES

SSL_set_connect_state() and SSL_set_accept_state() do not return diagnostic information.

SSL_is_server() returns 1 if ssl is working in server mode or 0 for client mode.

SEE ALSO

SSL_new(3), SSL_connect(3), SSL_write_ex(3), SSL_read_ex(3), SSL_do_handshake(3), COPYRIGHT

Copyright 2001-2017 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (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 https://www.openssl.org/source/license.html.

关闭