Software: Apache. PHP/5.6.40 uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) Safe-mode: OFF (not secure) /opt/cpanel/ea-openssl11/share/doc/openssl/html/man3/ drwxr-xr-x |
Viewing file: Select action/file-type:
NAMESSL_shutdown - shut down a TLS/SSL connection
SYNOPSIS#include <openssl/ssl.h> int SSL_shutdown(SSL *ssl);
DESCRIPTION
NOTES
Note that The shutdown procedure consists of two steps: sending of the close_notify shutdown alert, and reception of the peer's close_notify shutdown alert. The order of those two steps depends on the application. It is acceptable for an application to only send its shutdown alert and then close the underlying connection without waiting for the peer's response. This way resources can be saved, as the process can already terminate or serve another connection. This should only be done when it is known that the other side will not send more data, otherwise there is a risk of a truncation attack. When a client only writes and never reads from the connection, and the server has sent a session ticket to establish a session, the client might not be able to resume the session because it did not received and process the session ticket from the server. In case the application wants to be able to resume the session, it is recommended to do a complete shutdown procedure (bidirectional close_notify alerts). When the underlying connection shall be used for more communications, the complete shutdown procedure must be performed, so that the peers stay synchronized.
First to close the connectionWhen the application is the first party to send the close_notify
alert, If a unidirectional shutdown is enough (the underlying connection shall be
closed anyway), this first successful call to In order to complete the bidirectional shutdown handshake, the peer needs to send back a close_notify alert. The SSL_RECEIVED_SHUTDOWN flag will be set after receiving and processing it. The peer is still allowed to send data after receiving the close_notify
event.
When it is done sending data, it will send the close_notify alert.
Peer closes the connectionIf the peer already sent the close_notify alert and it was
already processed implicitly inside another function
(SSL_read(3)), the SSL_RECEIVED_SHUTDOWN flag is set.
Whether SSL_RECEIVED_SHUTDOWN is already set can be checked using the
NOTESThe behaviour of If the underlying BIO is nonblocking, After
There are implementations that do not send the required close_notify alert. If there is a need to communicate with such an implementation, and it's clear that all data has been received, do not wait for the peer's close_notify alert. Waiting for the close_notify alert when the peer just closes the connection will result in an error being generated.
RETURN VALUESThe following return values can occur:
SEE ALSOSSL_get_error(3), SSL_connect(3), SSL_accept(3), SSL_set_shutdown(3), SSL_CTX_set_quiet_shutdown(3), SSL_clear(3), SSL_free(3), ssl(7), bio(7)
COPYRIGHTCopyright 2000-2020 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 https://www.openssl.org/source/license.html. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.018 ]-- |