# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # #-#-#-#-# archlinux: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Title" msgstr "" # #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "SSL_SHUTDOWN 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SSL_SHUTDOWN" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "SSL_shutdown, SSL_shutdown_ex - shut down a TLS/SSL or QUIC connection" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/ssl.hE\n" "\\&\n" "\\& int SSL_shutdown(SSL *ssl);\n" "\\&\n" "\\& typedef struct ssl_shutdown_ex_args_st {\n" "\\& uint64_t quic_error_code;\n" "\\& const char *quic_reason;\n" "\\& } SSL_SHUTDOWN_EX_ARGS;\n" "\\&\n" "\\& _\\|_owur int SSL_shutdown_ex(SSL *ssl, uint64_t flags,\n" "\\& const SSL_SHUTDOWN_EX_ARGS *args,\n" "\\& size_t args_len);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B shuts down an active connection represented by an SSL " "object. I B be NULL." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is an extended version of B. If non-" "NULL, I must point to a B structure and " "I must be set to \\&CW. The " "B structure must be zero-initialized. If I is " "NULL, the behaviour is the same as passing a zero-initialised " "B structure. Currently, all extended arguments relate " "to usage with QUIC, therefore this call functions identically to " "B when not being used with QUIC." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "While the general operation of B is common between " "protocols, the exact nature of how a shutdown is performed depends on the " "underlying protocol being used. See the section below pertaining to each " "protocol for more information." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In general, calling B in nonblocking mode will initiate the " "shutdown process and return 0 to indicate that the shutdown process has not " "yet completed. Once the shutdown process has completed, subsequent calls to " "\\&B will return 1. See the RETURN VALUES section for more " "information." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B should not be called if a previous fatal error has " "occurred on a connection; i.e., if B\\|(3) has returned " "B or \\&B." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "TLS AND DTLS-SPECIFIC CONSIDERATIONS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Shutdown for SSL/TLS and DTLS is implemented in terms of the SSL/TLS/DTLS " "close_notify alert message. The shutdown process for SSL/TLS and DTLS " "consists of two steps:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\\(bu" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "A close_notify shutdown alert message is sent to the peer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "A close_notify shutdown alert message is received from the peer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "These steps can occur in either order depending on whether the connection " "shutdown process was first initiated by the local application or by the peer." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Locally-Initiated Shutdown" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Subsection" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Calling B on an SSL/TLS or DTLS SSL object initiates the " "shutdown process and causes OpenSSL to try to send a close_notify shutdown " "alert to the peer. The shutdown process will then be considered completed " "once the peer responds in turn with a close_notify shutdown alert message." msgstr "" #. type: Plain text #: archlinux msgid "" "Calling B only closes the write direction of the connection; " "the read direction is closed by the peer. Once B is called, " "\\&B\\|(3) can no longer be used, but B\\|(3) may still " "be used until the peer decides to close the connection in turn. The peer " "might continue sending data for some period of time before handling the " "local application\\*(Aqs shutdown indication." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B does not affect an underlying network connection such " "as a TCP connection, which remains open." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Remotely-Initiated Shutdown" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the peer was the first to initiate the shutdown process by sending a " "close_notify alert message, an application will be notified of this as an " "EOF condition when calling \\&B\\|(3) (i.e., B\\|(3) " "will fail and B\\|(3) will return B), " "after all application data sent by the peer prior to initiating the shutdown " "has been read. An application should handle this condition by calling " "B to respond with a close_notify alert in turn, completing " "the shutdown process, though it may choose to write additional application " "data using B\\|(3) before doing so. If an application does not " "call B in this case, a close_notify alert will not be sent " "and the behaviour will not be fully standards compliant." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Shutdown Lifecycle" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Regardless of whether a shutdown was initiated locally or by the peer, if " "the underlying BIO is blocking, a call to B will return " "firstly once a close_notify alert message is written to the peer (returning " "0), and upon a second and subsequent call, once a corresponding message is " "received from the peer (returning 1 and completing the shutdown process). " "Calls to B with a blocking underlying BIO will also return " "if an error occurs." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the underlying BIO is nonblocking and the shutdown process is not yet " "complete (for example, because a close_notify alert message has not yet been " "received from the peer, or because a close_notify alert message needs to be " "sent but would currently block), B returns 0 to indicate " "that the shutdown process is still ongoing; in this case, a call to " "B\\|(3) will yield B or " "B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An application can then detect completion of the shutdown process by calling " "\\&B again repeatedly until it returns 1, indicating that " "the shutdown process is complete (with a close_notify alert having both been " "sent and received)." msgstr "" #. type: Plain text #: archlinux msgid "" "However, the preferred method of waiting for the shutdown to complete is to " "use \\&B\\|(3) until B\\|(3) indicates EOF by " "returning \\&B. This ensures any data received " "immediately before the peer\\*(Aqs close_notify alert is still provided to " "the application. It also ensures any final handshake-layer messages received " "are processed (for example, messages issuing new session tickets)." msgstr "" #. type: Plain text #: archlinux msgid "" "If this approach is not used, the second call to B (to " "complete the shutdown by confirming receipt of the peer\\*(Aqs close_notify " "message) will fail if it is called when the application has not read all " "pending application data sent by the peer using B\\|(3)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When calling B, the B flag is set once an " "attempt is made to send a close_notify alert, regardless of whether the " "attempt was successful. The B flag is set once a " "close_notify alert is received, which may occur during any call which " "processes incoming data from the network, such as B\\|(3) or " "B. These flags may be checked using B\\|" "(3)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Fast Shutdown" msgstr "" #. type: Plain text #: archlinux msgid "" "Alternatively, it is acceptable for an application to call B " "once (such that it returns 0) and then close the underlying connection " "without waiting for the peer\\*(Aqs response. This allows for a more rapid " "shutdown process if the application does not wish to wait for the peer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This alternative \"fast shutdown\" approach should only be done if it is " "known that the peer will not send more data, otherwise there is a risk of an " "application exposing itself to a truncation attack. The full " "B process, in which both parties send close_notify alerts " "and B returns 1, provides a cryptographically authenticated " "indication of the end of a connection." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This approach of a single B call without waiting is " "preferable to simply calling B\\|(3) or B\\|(3) as " "calling B beforehand makes an SSL session eligible for " "subsequent reuse and notifies the peer of connection shutdown." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The fast shutdown approach can only be used if there is no intention to " "reuse the underlying connection (e.g. a TCP connection) for further " "communication; in this case, the full shutdown process must be performed to " "ensure synchronisation." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Effects on Session Reuse" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Calling B sets the SSL_SENT_SHUTDOWN flag (see " "\\&B\\|(3)), regardless of whether the transmission of the " "close_notify alert was successful or not. This makes the SSL session " "eligible for reuse; the SSL session is considered properly closed and can be " "reused for future connections." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Quiet Shutdown" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B can be modified to set the connection to the " "\"shutdown\" state without actually sending a close_notify alert message; " "see \\&B\\|(3). When \"quiet shutdown\" is " "enabled, \\&B will always succeed and return 1 immediately." msgstr "" #. type: Plain text #: archlinux msgid "" "This is not standards-compliant behaviour. It should only be done when the " "application protocol in use enables the peer to ensure that all data has " "been received, such that it doesn\\*(Aqt need to wait for a close_notify " "alert, otherwise application data may be truncated unexpectedly." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Non-Compliant Peers" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "There are SSL/TLS implementations that never send the required close_notify " "alert message but simply close the underlying transport (e.g. a TCP " "connection) instead. This will ordinarily result in an error being " "generated." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If compatibility with such peers is desired, the option " "\\&B can be set. For more information, see " "\\&B\\|(3)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Note that use of this option means that the EOF condition for application " "data does not receive cryptographic protection, and therefore renders an " "application potentially vulnerable to truncation attacks. Thus, this option " "must only be used in conjunction with an application protocol which " "indicates unambiguously when all data has been received." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An alternative approach is to simply avoid calling B\\|(3) if it " "is known that no more data is going to be sent. This requires an application " "protocol which indicates unambiguously when all data has been sent." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Session Ticket Handling" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If a client application only writes to an SSL/TLS or DTLS connection and " "never reads, OpenSSL may never process new SSL/TLS session tickets sent by " "the server. This is because OpenSSL ordinarily processes handshake messages " "received from a peer during calls to B\\|(3) by the application." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Therefore, client applications which only write and do not read but which " "wish to benefit from session resumption are advised to perform a complete " "shutdown procedure by calling B until it returns 1, as " "described above. This will ensure there is an opportunity for SSL/TLS " "session ticket messages to be received and processed by OpenSSL." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "QUIC-SPECIFIC SHUTDOWN CONSIDERATIONS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a QUIC connection SSL object, B initiates a " "QUIC immediate close using QUIC B frames." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B cannot be used on QUIC stream SSL objects. To conclude " "a stream normally, see B\\|(3); to perform a non-normal " "stream termination, see B\\|(3)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B may be used instead of B by an " "application to provide additional information to the peer on the reason why " "a connection is being shut down. The information which can be provided is as " "follows:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "I" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Item" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "quic_error_code" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An optional 62-bit application error code to be signalled to the peer. The " "value must be in the range [0, 2**62-1], else the call to " "B fails. If not provided, an error code of 0 is used by " "default." msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "I" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "quic_reason" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An optional zero-terminated (UTF-8) reason string to be signalled to the " "peer. The application is responsible for providing a valid UTF-8 string and " "OpenSSL will not validate the string. If a reason is not provided, or " "B is used, a zero-length string is used as the reason. If " "provided, the reason string is copied and stored inside the QUIC connection " "SSL object and need not remain allocated after the call to " "B returns. Reason strings are bounded by the path MTU and " "may be silently truncated if they are too long to fit in a QUIC packet." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Reason strings are intended for human diagnostic purposes only, and should " "not be used for application signalling." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The arguments to B are used only on the first call to " "\\&B (or B) for a given QUIC connection " "SSL object. These arguments are ignored on subsequent calls." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "These functions do not affect an underlying network BIO or the resource it " "represents; for example, a UDP datagram provided to a QUIC connection as the " "network BIO will remain open." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Note that when using QUIC, an application must call B if it " "wants to ensure that all transmitted data was received by the peer. This is " "unlike a TLS/TCP connection, where reliable transmission of buffered data is " "the responsibility of the operating system. If an application calls " "B on a QUIC connection SSL object or exits before completing the " "shutdown process using \\&B, data which was written by the " "application using B, but could not yet be transmitted, or which " "was sent but lost in the network, may not be received by the peer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When using QUIC, calling B allows internal network event " "processing to be performed. It is important that this processing is " "performed regularly, whether during connection usage or during shutdown. If " "an application is not using thread assisted mode, an application conducting " "shutdown should either ensure that B is called regularly, or " "alternatively ensure that \\&B is called regularly. See " "B\\|(7) and \\&B\\|(3) for more information." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Application Data Drainage Behaviour" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When using QUIC, B or B ordinarily waits " "until all data written to a stream by an application has been acknowledged " "by the peer. In other words, the shutdown process waits until all data " "written by the application has been sent to the peer, and until the receipt " "of all such data is acknowledged by the peer. Only once this process is " "completed is the shutdown considered complete." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "An exception to this is streams which terminated in a non-normal fashion, " "for example due to a stream reset; only streams which are non-terminated at " "the time \\&B is called, or which terminated in a normal " "fashion, have their pending send buffers flushed in this manner." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This behaviour of flushing streams during the shutdown process can be " "skipped by setting the B flag in a call " "to \\&B; in this case, data remaining in stream send " "buffers may not be transmitted to the peer. This flag may be used when a non-" "normal application condition has occurred and the delivery of data written " "to streams via \\&B\\|(3) is no longer relevant." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Shutdown Mode" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Aspects of how QUIC handles connection closure must be taken into account by " "applications. Ordinarily, QUIC expects a connection to continue to be " "serviced for a substantial period of time after it is nominally closed. This " "is necessary to ensure that any connection closure notification sent to the " "peer was successfully received. However, a consequence of this is that a " "fully RFC-compliant QUIC connection closure process could take of the order " "of seconds. This may be unsuitable for some applications, such as short-" "lived processes which need to exit immediately after completing an " "application-layer transaction." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "As such, there are two shutdown modes available to users of QUIC connection " "SSL objects:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RFC compliant shutdown mode" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This is the default behaviour. The shutdown process may take a period of " "time up to three times the current estimated RTT to the peer. It is possible " "for the closure process to complete much faster in some circumstances but " "this cannot be relied upon." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In blocking mode, the function will return once the closure process is " "complete. In nonblocking mode, B should be called until " "it returns 1, indicating the closure process is complete and the connection " "is now fully shut down." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Rapid shutdown mode" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In this mode, the peer is notified of connection closure on a best effort " "basis by sending a single QUIC packet. If that QUIC packet is lost, the peer " "will not know that the connection has terminated until the negotiated idle " "timeout (if any) expires." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This will generally return 0 on success, indicating that the connection has " "not yet been fully shut down (unless it has already done so, in which case " "it will return 1)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B is specified in I, a rapid shutdown is " "performed, otherwise an RFC-compliant shutdown is performed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If an application calls B with " "B, an application can subsequently change its mind " "about performing a rapid shutdown by making a subsequent call to " "B without the flag set." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Peer-Initiated Shutdown" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In some cases, an application may wish to wait for a shutdown initiated by " "the peer rather than triggered locally. To do this, call " "B with \\&I specified in " "I. In blocking mode, this waits until the peer initiates a shutdown " "or the connection otherwise becomes terminated for another reason. In " "nonblocking mode it exits immediately with either success or failure " "depending on whether a shutdown has occurred." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If a locally initiated shutdown has already been triggered or the connection " "has started terminating for another reason, this flag has no effect." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B implies " "B, as stream data cannot be flushed after " "a peer closes the connection. Stream data may still be sent to the peer in " "any time spent waiting before the peer closes the connection, though there " "is no guarantee of this." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Nonblocking Mode" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B block if the connection is " "configured in blocking mode. This may be overridden by specifying " "\\&B in I when calling " "B, which causes the call to operate as though in " "nonblocking mode." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For both B and B the following return " "values can occur:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "0" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The shutdown process is ongoing and has not yet completed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For TLS and DTLS, this means that a close_notify alert has been sent but the " "peer has not yet replied in turn with its own close_notify." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For QUIC connection SSL objects, a CONNECTION_CLOSE frame may have been sent " "but the connection closure process has not yet completed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Unlike most other functions, returning 0 does not indicate an error. " "\\&B\\|(3) should not be called; it may misleadingly indicate " "an error even though no error occurred." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "1" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The shutdown was successfully completed." msgstr "" #. type: Plain text #: archlinux msgid "" "For TLS and DTLS, this means that a close_notify alert was sent and the " "peer\\*(Aqs close_notify alert was received." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For QUIC connection SSL objects, this means that the connection closure " "process has completed." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "E0" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The shutdown was not successful. Call B\\|(3) with the " "return value B to find out the reason. It can occur if an action is " "needed to continue the operation for nonblocking BIOs." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "It can also occur when not all data was read using B, or if " "called on a QUIC stream SSL object." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "This value is also returned when called on QUIC stream SSL objects." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(3), B\\|(3), \\&B\\|(3), " "B\\|(3), \\&B\\|(3), " "B\\|(3) \\&B\\|(3), B\\|(3), " "\\&B\\|(7), B\\|(7)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The B function was added in OpenSSL 3.2." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "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 Ehttps://" "www.openssl.org/source/license.htmlE." msgstr "" #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "SSL_SHUTDOWN 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Calling B only closes the write direction of the connection; " "the read direction is closed by the peer. Once B is called, " "\\&B\\|(3) can no longer be used, but B\\|(3) may still " "be used until the peer decides to close the connection in turn. The peer " "might continue sending data for some period of time before handling the " "local application's shutdown indication." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "However, the preferred method of waiting for the shutdown to complete is to " "use \\&B\\|(3) until B\\|(3) indicates EOF by " "returning \\&B. This ensures any data received " "immediately before the peer's close_notify alert is still provided to the " "application. It also ensures any final handshake-layer messages received are " "processed (for example, messages issuing new session tickets)." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "If this approach is not used, the second call to B (to " "complete the shutdown by confirming receipt of the peer's close_notify " "message) will fail if it is called when the application has not read all " "pending application data sent by the peer using B\\|(3)." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Alternatively, it is acceptable for an application to call B " "once (such that it returns 0) and then close the underlying connection " "without waiting for the peer's response. This allows for a more rapid " "shutdown process if the application does not wish to wait for the peer." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "This is not standards-compliant behaviour. It should only be done when the " "application protocol in use enables the peer to ensure that all data has " "been received, such that it doesn't need to wait for a close_notify alert, " "otherwise application data may be truncated unexpectedly." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "For TLS and DTLS, this means that a close_notify alert was sent and the " "peer's close_notify alert was received." msgstr ""