SSL_SET_CONNECT_STATE - Online Linux Manual PageSection : 3ossl
Updated : 2022-03-15
Source : 3.0.2
Note : OpenSSL

NAMESSL_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);

DESCRIPTIONSSL_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.

NOTESWhen the SSL_CTX object was created with SSL_CTX_new(3), it was either assigned a dedicated client method, a dedicated server method, or a generic method, that can be used for both client and server connections. (The method might have been changed with ​SSL_CTX_set_ssl_version(3) or ​SSL_set_ssl_method(3).) When beginning a new handshake, the SSL engine must know whether it must call the connect (client) or accept (server) routines. Even though it may be clear from the method chosen, whether client or server mode was requested, the handshake routines must be explicitly set. When using the SSL_connect(3) or ​SSL_accept(3) routines, the correct handshake routines are automatically set. When performing a transparent negotiation using SSL_write_ex(3), SSL_write(3), SSL_read_ex(3), or SSL_read(3), the handshake routines must be explicitly set in advance using either ​SSL_set_connect_state() or SSL_set_accept_state(). If SSL_is_server() is called before SSL_set_connect_state() or ​SSL_set_accept_state() is called (either automatically or explicitly), the result depends on what method was used when SSL_CTX was created with ​SSL_CTX_new(3). If a generic method or a dedicated server method was passed to SSL_CTX_new(3), SSL_is_server() returns 1; otherwise, it returns 0.

RETURN VALUESSSL_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 ALSOssl(7), SSL_new(3), SSL_CTX_new(3), ​SSL_connect(3), SSL_accept(3), ​SSL_write_ex(3), SSL_write(3), SSL_read_ex(3), SSL_read(3), ​SSL_do_handshake(3), ​SSL_CTX_set_ssl_version(3)

COPYRIGHTCopyright 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>.
0
Johanes Gumabo
Data Size   :   11,421 byte
man-SSL_set_accept_state.3osslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   7 / 182,092
Visitor ID   :     :  
Visitor IP   :   3.147.82.108   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|S___SL_is_server.3ossl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|S___SL_is_server.3ossl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|S___SL_is_server.3ossl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|S___SL_is_server.3ossl|43|'br══─}─══ |'br══─}─══ )