| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:44+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
# #-#-#-#-# archlinux: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 20 |
# |
| 21 |
#. #-#-#-#-# archlinux: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 22 |
#. Required to disable full justification in groff 1.23.0. |
| 23 |
#. ======================================================================== |
| 24 |
#. type: IX |
| 25 |
#. #-#-#-#-# debian-trixie: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 26 |
#. ======================================================================== |
| 27 |
#. type: IX |
| 28 |
#. #-#-#-#-# debian-unstable: SSL_shutdown.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 29 |
#. ======================================================================== |
| 30 |
#. type: IX |
| 31 |
#: archlinux debian-trixie debian-unstable |
| 32 |
#, no-wrap |
| 33 |
msgid "Title" |
| 34 |
msgstr "" |
| 35 |
|
| 36 |
# |
| 37 |
#. Required to disable full justification in groff 1.23.0. |
| 38 |
#. ======================================================================== |
| 39 |
#. type: IX |
| 40 |
#: archlinux |
| 41 |
#, no-wrap |
| 42 |
msgid "SSL_SHUTDOWN 3ssl" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: TH |
| 46 |
#: archlinux debian-trixie debian-unstable |
| 47 |
#, no-wrap |
| 48 |
msgid "SSL_SHUTDOWN" |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#. type: TH |
| 52 |
#: archlinux debian-trixie debian-unstable |
| 53 |
#, no-wrap |
| 54 |
msgid "2026-04-07" |
| 55 |
msgstr "" |
| 56 |
|
| 57 |
#. type: TH |
| 58 |
#: archlinux debian-unstable |
| 59 |
#, no-wrap |
| 60 |
msgid "3.6.2" |
| 61 |
msgstr "" |
| 62 |
|
| 63 |
#. type: TH |
| 64 |
#: archlinux debian-trixie debian-unstable |
| 65 |
#, no-wrap |
| 66 |
msgid "OpenSSL" |
| 67 |
msgstr "" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable |
| 71 |
#, no-wrap |
| 72 |
msgid "NAME" |
| 73 |
msgstr "" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-trixie debian-unstable |
| 77 |
msgid "SSL_shutdown, SSL_shutdown_ex - shut down a TLS/SSL or QUIC connection" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: IX |
| 81 |
#: archlinux debian-trixie debian-unstable |
| 82 |
#, no-wrap |
| 83 |
msgid "SYNOPSIS" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: IX |
| 87 |
#: archlinux debian-trixie debian-unstable |
| 88 |
#, no-wrap |
| 89 |
msgid "Header" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable |
| 94 |
#, no-wrap |
| 95 |
msgid "" |
| 96 |
"\\& #include E<lt>openssl/ssl.hE<gt>\n" |
| 97 |
"\\&\n" |
| 98 |
"\\& int SSL_shutdown(SSL *ssl);\n" |
| 99 |
"\\&\n" |
| 100 |
"\\& typedef struct ssl_shutdown_ex_args_st {\n" |
| 101 |
"\\& uint64_t quic_error_code;\n" |
| 102 |
"\\& const char *quic_reason;\n" |
| 103 |
"\\& } SSL_SHUTDOWN_EX_ARGS;\n" |
| 104 |
"\\&\n" |
| 105 |
"\\& _\\|_owur int SSL_shutdown_ex(SSL *ssl, uint64_t flags,\n" |
| 106 |
"\\& const SSL_SHUTDOWN_EX_ARGS *args,\n" |
| 107 |
"\\& size_t args_len);\n" |
| 108 |
msgstr "" |
| 109 |
|
| 110 |
#. type: IX |
| 111 |
#: archlinux debian-trixie debian-unstable |
| 112 |
#, no-wrap |
| 113 |
msgid "DESCRIPTION" |
| 114 |
msgstr "" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: archlinux debian-trixie debian-unstable |
| 118 |
msgid "" |
| 119 |
"\\&B<SSL_shutdown()> shuts down an active connection represented by an SSL " |
| 120 |
"object. I<ssl> B<MUST NOT> be NULL." |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable |
| 125 |
msgid "" |
| 126 |
"\\&B<SSL_shutdown_ex()> is an extended version of B<SSL_shutdown()>. If non-" |
| 127 |
"NULL, I<args> must point to a B<SSL_SHUTDOWN_EX_ARGS> structure and " |
| 128 |
"I<args_len> must be set to \\&CW<sizeof(SSL_SHUTDOWN_EX_ARGS)>. The " |
| 129 |
"B<SSL_SHUTDOWN_EX_ARGS> structure must be zero-initialized. If I<args> is " |
| 130 |
"NULL, the behaviour is the same as passing a zero-initialised " |
| 131 |
"B<SSL_SHUTDOWN_EX_ARGS> structure. Currently, all extended arguments relate " |
| 132 |
"to usage with QUIC, therefore this call functions identically to " |
| 133 |
"B<SSL_shutdown()> when not being used with QUIC." |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable |
| 138 |
msgid "" |
| 139 |
"While the general operation of B<SSL_shutdown()> is common between " |
| 140 |
"protocols, the exact nature of how a shutdown is performed depends on the " |
| 141 |
"underlying protocol being used. See the section below pertaining to each " |
| 142 |
"protocol for more information." |
| 143 |
msgstr "" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-trixie debian-unstable |
| 147 |
msgid "" |
| 148 |
"In general, calling B<SSL_shutdown()> in nonblocking mode will initiate the " |
| 149 |
"shutdown process and return 0 to indicate that the shutdown process has not " |
| 150 |
"yet completed. Once the shutdown process has completed, subsequent calls to " |
| 151 |
"\\&B<SSL_shutdown()> will return 1. See the RETURN VALUES section for more " |
| 152 |
"information." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable |
| 157 |
msgid "" |
| 158 |
"\\&B<SSL_shutdown()> should not be called if a previous fatal error has " |
| 159 |
"occurred on a connection; i.e., if B<SSL_get_error>\\|(3) has returned " |
| 160 |
"B<SSL_ERROR_SYSCALL> or \\&B<SSL_ERROR_SSL>." |
| 161 |
msgstr "" |
| 162 |
|
| 163 |
#. type: IX |
| 164 |
#: archlinux debian-trixie debian-unstable |
| 165 |
#, no-wrap |
| 166 |
msgid "TLS AND DTLS-SPECIFIC CONSIDERATIONS" |
| 167 |
msgstr "" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable |
| 171 |
msgid "" |
| 172 |
"Shutdown for SSL/TLS and DTLS is implemented in terms of the SSL/TLS/DTLS " |
| 173 |
"close_notify alert message. The shutdown process for SSL/TLS and DTLS " |
| 174 |
"consists of two steps:" |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: IP |
| 178 |
#: archlinux debian-trixie debian-unstable |
| 179 |
#, no-wrap |
| 180 |
msgid "\\(bu" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable |
| 185 |
msgid "A close_notify shutdown alert message is sent to the peer." |
| 186 |
msgstr "" |
| 187 |
|
| 188 |
#. type: Plain text |
| 189 |
#: archlinux debian-trixie debian-unstable |
| 190 |
msgid "A close_notify shutdown alert message is received from the peer." |
| 191 |
msgstr "" |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable |
| 195 |
msgid "" |
| 196 |
"These steps can occur in either order depending on whether the connection " |
| 197 |
"shutdown process was first initiated by the local application or by the peer." |
| 198 |
msgstr "" |
| 199 |
|
| 200 |
#. type: IX |
| 201 |
#: archlinux debian-trixie debian-unstable |
| 202 |
#, no-wrap |
| 203 |
msgid "Locally-Initiated Shutdown" |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#. type: IX |
| 207 |
#: archlinux debian-trixie debian-unstable |
| 208 |
#, no-wrap |
| 209 |
msgid "Subsection" |
| 210 |
msgstr "" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable |
| 214 |
msgid "" |
| 215 |
"Calling B<SSL_shutdown()> on an SSL/TLS or DTLS SSL object initiates the " |
| 216 |
"shutdown process and causes OpenSSL to try to send a close_notify shutdown " |
| 217 |
"alert to the peer. The shutdown process will then be considered completed " |
| 218 |
"once the peer responds in turn with a close_notify shutdown alert message." |
| 219 |
msgstr "" |
| 220 |
|
| 221 |
#. type: Plain text |
| 222 |
#: archlinux |
| 223 |
msgid "" |
| 224 |
"Calling B<SSL_shutdown()> only closes the write direction of the connection; " |
| 225 |
"the read direction is closed by the peer. Once B<SSL_shutdown()> is called, " |
| 226 |
"\\&B<SSL_write>\\|(3) can no longer be used, but B<SSL_read>\\|(3) may still " |
| 227 |
"be used until the peer decides to close the connection in turn. The peer " |
| 228 |
"might continue sending data for some period of time before handling the " |
| 229 |
"local application\\*(Aqs shutdown indication." |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: Plain text |
| 233 |
#: archlinux debian-trixie debian-unstable |
| 234 |
msgid "" |
| 235 |
"\\&B<SSL_shutdown()> does not affect an underlying network connection such " |
| 236 |
"as a TCP connection, which remains open." |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: IX |
| 240 |
#: archlinux debian-trixie debian-unstable |
| 241 |
#, no-wrap |
| 242 |
msgid "Remotely-Initiated Shutdown" |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable |
| 247 |
msgid "" |
| 248 |
"If the peer was the first to initiate the shutdown process by sending a " |
| 249 |
"close_notify alert message, an application will be notified of this as an " |
| 250 |
"EOF condition when calling \\&B<SSL_read>\\|(3) (i.e., B<SSL_read>\\|(3) " |
| 251 |
"will fail and B<SSL_get_error>\\|(3) will return B<SSL_ERROR_ZERO_RETURN>), " |
| 252 |
"after all application data sent by the peer prior to initiating the shutdown " |
| 253 |
"has been read. An application should handle this condition by calling " |
| 254 |
"B<SSL_shutdown()> to respond with a close_notify alert in turn, completing " |
| 255 |
"the shutdown process, though it may choose to write additional application " |
| 256 |
"data using B<SSL_write>\\|(3) before doing so. If an application does not " |
| 257 |
"call B<SSL_shutdown()> in this case, a close_notify alert will not be sent " |
| 258 |
"and the behaviour will not be fully standards compliant." |
| 259 |
msgstr "" |
| 260 |
|
| 261 |
#. type: IX |
| 262 |
#: archlinux debian-trixie debian-unstable |
| 263 |
#, no-wrap |
| 264 |
msgid "Shutdown Lifecycle" |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable |
| 269 |
msgid "" |
| 270 |
"Regardless of whether a shutdown was initiated locally or by the peer, if " |
| 271 |
"the underlying BIO is blocking, a call to B<SSL_shutdown()> will return " |
| 272 |
"firstly once a close_notify alert message is written to the peer (returning " |
| 273 |
"0), and upon a second and subsequent call, once a corresponding message is " |
| 274 |
"received from the peer (returning 1 and completing the shutdown process). " |
| 275 |
"Calls to B<SSL_shutdown()> with a blocking underlying BIO will also return " |
| 276 |
"if an error occurs." |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-trixie debian-unstable |
| 281 |
msgid "" |
| 282 |
"If the underlying BIO is nonblocking and the shutdown process is not yet " |
| 283 |
"complete (for example, because a close_notify alert message has not yet been " |
| 284 |
"received from the peer, or because a close_notify alert message needs to be " |
| 285 |
"sent but would currently block), B<SSL_shutdown()> returns 0 to indicate " |
| 286 |
"that the shutdown process is still ongoing; in this case, a call to " |
| 287 |
"B<SSL_get_error>\\|(3) will yield B<SSL_ERROR_WANT_READ> or " |
| 288 |
"B<SSL_ERROR_WANT_WRITE>." |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#. type: Plain text |
| 292 |
#: archlinux debian-trixie debian-unstable |
| 293 |
msgid "" |
| 294 |
"An application can then detect completion of the shutdown process by calling " |
| 295 |
"\\&B<SSL_shutdown()> again repeatedly until it returns 1, indicating that " |
| 296 |
"the shutdown process is complete (with a close_notify alert having both been " |
| 297 |
"sent and received)." |
| 298 |
msgstr "" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux |
| 302 |
msgid "" |
| 303 |
"However, the preferred method of waiting for the shutdown to complete is to " |
| 304 |
"use \\&B<SSL_read>\\|(3) until B<SSL_get_error>\\|(3) indicates EOF by " |
| 305 |
"returning \\&B<SSL_ERROR_ZERO_RETURN>. This ensures any data received " |
| 306 |
"immediately before the peer\\*(Aqs close_notify alert is still provided to " |
| 307 |
"the application. It also ensures any final handshake-layer messages received " |
| 308 |
"are processed (for example, messages issuing new session tickets)." |
| 309 |
msgstr "" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux |
| 313 |
msgid "" |
| 314 |
"If this approach is not used, the second call to B<SSL_shutdown()> (to " |
| 315 |
"complete the shutdown by confirming receipt of the peer\\*(Aqs close_notify " |
| 316 |
"message) will fail if it is called when the application has not read all " |
| 317 |
"pending application data sent by the peer using B<SSL_read>\\|(3)." |
| 318 |
msgstr "" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable |
| 322 |
msgid "" |
| 323 |
"When calling B<SSL_shutdown()>, the B<SSL_SENT_SHUTDOWN> flag is set once an " |
| 324 |
"attempt is made to send a close_notify alert, regardless of whether the " |
| 325 |
"attempt was successful. The B<SSL_RECEIVED_SHUTDOWN> flag is set once a " |
| 326 |
"close_notify alert is received, which may occur during any call which " |
| 327 |
"processes incoming data from the network, such as B<SSL_read>\\|(3) or " |
| 328 |
"B<SSL_shutdown()>. These flags may be checked using B<SSL_get_shutdown>\\|" |
| 329 |
"(3)." |
| 330 |
msgstr "" |
| 331 |
|
| 332 |
#. type: IX |
| 333 |
#: archlinux debian-trixie debian-unstable |
| 334 |
#, no-wrap |
| 335 |
msgid "Fast Shutdown" |
| 336 |
msgstr "" |
| 337 |
|
| 338 |
#. type: Plain text |
| 339 |
#: archlinux |
| 340 |
msgid "" |
| 341 |
"Alternatively, it is acceptable for an application to call B<SSL_shutdown()> " |
| 342 |
"once (such that it returns 0) and then close the underlying connection " |
| 343 |
"without waiting for the peer\\*(Aqs response. This allows for a more rapid " |
| 344 |
"shutdown process if the application does not wish to wait for the peer." |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-trixie debian-unstable |
| 349 |
msgid "" |
| 350 |
"This alternative \"fast shutdown\" approach should only be done if it is " |
| 351 |
"known that the peer will not send more data, otherwise there is a risk of an " |
| 352 |
"application exposing itself to a truncation attack. The full " |
| 353 |
"B<SSL_shutdown()> process, in which both parties send close_notify alerts " |
| 354 |
"and B<SSL_shutdown()> returns 1, provides a cryptographically authenticated " |
| 355 |
"indication of the end of a connection." |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-trixie debian-unstable |
| 360 |
msgid "" |
| 361 |
"This approach of a single B<SSL_shutdown()> call without waiting is " |
| 362 |
"preferable to simply calling B<SSL_free>\\|(3) or B<SSL_clear>\\|(3) as " |
| 363 |
"calling B<SSL_shutdown()> beforehand makes an SSL session eligible for " |
| 364 |
"subsequent reuse and notifies the peer of connection shutdown." |
| 365 |
msgstr "" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-trixie debian-unstable |
| 369 |
msgid "" |
| 370 |
"The fast shutdown approach can only be used if there is no intention to " |
| 371 |
"reuse the underlying connection (e.g. a TCP connection) for further " |
| 372 |
"communication; in this case, the full shutdown process must be performed to " |
| 373 |
"ensure synchronisation." |
| 374 |
msgstr "" |
| 375 |
|
| 376 |
#. type: IX |
| 377 |
#: archlinux debian-trixie debian-unstable |
| 378 |
#, no-wrap |
| 379 |
msgid "Effects on Session Reuse" |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-trixie debian-unstable |
| 384 |
msgid "" |
| 385 |
"Calling B<SSL_shutdown()> sets the SSL_SENT_SHUTDOWN flag (see " |
| 386 |
"\\&B<SSL_set_shutdown>\\|(3)), regardless of whether the transmission of the " |
| 387 |
"close_notify alert was successful or not. This makes the SSL session " |
| 388 |
"eligible for reuse; the SSL session is considered properly closed and can be " |
| 389 |
"reused for future connections." |
| 390 |
msgstr "" |
| 391 |
|
| 392 |
#. type: IX |
| 393 |
#: archlinux debian-trixie debian-unstable |
| 394 |
#, no-wrap |
| 395 |
msgid "Quiet Shutdown" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-trixie debian-unstable |
| 400 |
msgid "" |
| 401 |
"\\&B<SSL_shutdown()> can be modified to set the connection to the " |
| 402 |
"\"shutdown\" state without actually sending a close_notify alert message; " |
| 403 |
"see \\&B<SSL_CTX_set_quiet_shutdown>\\|(3). When \"quiet shutdown\" is " |
| 404 |
"enabled, \\&B<SSL_shutdown()> will always succeed and return 1 immediately." |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: archlinux |
| 409 |
msgid "" |
| 410 |
"This is not standards-compliant behaviour. It should only be done when the " |
| 411 |
"application protocol in use enables the peer to ensure that all data has " |
| 412 |
"been received, such that it doesn\\*(Aqt need to wait for a close_notify " |
| 413 |
"alert, otherwise application data may be truncated unexpectedly." |
| 414 |
msgstr "" |
| 415 |
|
| 416 |
#. type: IX |
| 417 |
#: archlinux debian-trixie debian-unstable |
| 418 |
#, no-wrap |
| 419 |
msgid "Non-Compliant Peers" |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable |
| 424 |
msgid "" |
| 425 |
"There are SSL/TLS implementations that never send the required close_notify " |
| 426 |
"alert message but simply close the underlying transport (e.g. a TCP " |
| 427 |
"connection) instead. This will ordinarily result in an error being " |
| 428 |
"generated." |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable |
| 433 |
msgid "" |
| 434 |
"If compatibility with such peers is desired, the option " |
| 435 |
"\\&B<SSL_OP_IGNORE_UNEXPECTED_EOF> can be set. For more information, see " |
| 436 |
"\\&B<SSL_CTX_set_options>\\|(3)." |
| 437 |
msgstr "" |
| 438 |
|
| 439 |
#. type: Plain text |
| 440 |
#: archlinux debian-trixie debian-unstable |
| 441 |
msgid "" |
| 442 |
"Note that use of this option means that the EOF condition for application " |
| 443 |
"data does not receive cryptographic protection, and therefore renders an " |
| 444 |
"application potentially vulnerable to truncation attacks. Thus, this option " |
| 445 |
"must only be used in conjunction with an application protocol which " |
| 446 |
"indicates unambiguously when all data has been received." |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable |
| 451 |
msgid "" |
| 452 |
"An alternative approach is to simply avoid calling B<SSL_read>\\|(3) if it " |
| 453 |
"is known that no more data is going to be sent. This requires an application " |
| 454 |
"protocol which indicates unambiguously when all data has been sent." |
| 455 |
msgstr "" |
| 456 |
|
| 457 |
#. type: IX |
| 458 |
#: archlinux debian-trixie debian-unstable |
| 459 |
#, no-wrap |
| 460 |
msgid "Session Ticket Handling" |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#. type: Plain text |
| 464 |
#: archlinux debian-trixie debian-unstable |
| 465 |
msgid "" |
| 466 |
"If a client application only writes to an SSL/TLS or DTLS connection and " |
| 467 |
"never reads, OpenSSL may never process new SSL/TLS session tickets sent by " |
| 468 |
"the server. This is because OpenSSL ordinarily processes handshake messages " |
| 469 |
"received from a peer during calls to B<SSL_read>\\|(3) by the application." |
| 470 |
msgstr "" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-trixie debian-unstable |
| 474 |
msgid "" |
| 475 |
"Therefore, client applications which only write and do not read but which " |
| 476 |
"wish to benefit from session resumption are advised to perform a complete " |
| 477 |
"shutdown procedure by calling B<SSL_shutdown()> until it returns 1, as " |
| 478 |
"described above. This will ensure there is an opportunity for SSL/TLS " |
| 479 |
"session ticket messages to be received and processed by OpenSSL." |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#. type: IX |
| 483 |
#: archlinux debian-trixie debian-unstable |
| 484 |
#, no-wrap |
| 485 |
msgid "QUIC-SPECIFIC SHUTDOWN CONSIDERATIONS" |
| 486 |
msgstr "" |
| 487 |
|
| 488 |
#. type: Plain text |
| 489 |
#: archlinux debian-trixie debian-unstable |
| 490 |
msgid "" |
| 491 |
"When used with a QUIC connection SSL object, B<SSL_shutdown()> initiates a " |
| 492 |
"QUIC immediate close using QUIC B<CONNECTION_CLOSE> frames." |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable |
| 497 |
msgid "" |
| 498 |
"\\&B<SSL_shutdown()> cannot be used on QUIC stream SSL objects. To conclude " |
| 499 |
"a stream normally, see B<SSL_stream_conclude>\\|(3); to perform a non-normal " |
| 500 |
"stream termination, see B<SSL_stream_reset>\\|(3)." |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-trixie debian-unstable |
| 505 |
msgid "" |
| 506 |
"\\&B<SSL_shutdown_ex()> may be used instead of B<SSL_shutdown()> by an " |
| 507 |
"application to provide additional information to the peer on the reason why " |
| 508 |
"a connection is being shut down. The information which can be provided is as " |
| 509 |
"follows:" |
| 510 |
msgstr "" |
| 511 |
|
| 512 |
#. type: IP |
| 513 |
#: archlinux debian-trixie debian-unstable |
| 514 |
#, no-wrap |
| 515 |
msgid "I<quic_error_code>" |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: IX |
| 519 |
#: archlinux debian-trixie debian-unstable |
| 520 |
#, no-wrap |
| 521 |
msgid "Item" |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#. type: IX |
| 525 |
#: archlinux debian-trixie debian-unstable |
| 526 |
#, no-wrap |
| 527 |
msgid "quic_error_code" |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: archlinux debian-trixie debian-unstable |
| 532 |
msgid "" |
| 533 |
"An optional 62-bit application error code to be signalled to the peer. The " |
| 534 |
"value must be in the range [0, 2**62-1], else the call to " |
| 535 |
"B<SSL_shutdown_ex()> fails. If not provided, an error code of 0 is used by " |
| 536 |
"default." |
| 537 |
msgstr "" |
| 538 |
|
| 539 |
#. type: IP |
| 540 |
#: archlinux debian-trixie debian-unstable |
| 541 |
#, no-wrap |
| 542 |
msgid "I<quic_reason>" |
| 543 |
msgstr "" |
| 544 |
|
| 545 |
#. type: IX |
| 546 |
#: archlinux debian-trixie debian-unstable |
| 547 |
#, no-wrap |
| 548 |
msgid "quic_reason" |
| 549 |
msgstr "" |
| 550 |
|
| 551 |
#. type: Plain text |
| 552 |
#: archlinux debian-trixie debian-unstable |
| 553 |
msgid "" |
| 554 |
"An optional zero-terminated (UTF-8) reason string to be signalled to the " |
| 555 |
"peer. The application is responsible for providing a valid UTF-8 string and " |
| 556 |
"OpenSSL will not validate the string. If a reason is not provided, or " |
| 557 |
"B<SSL_shutdown()> is used, a zero-length string is used as the reason. If " |
| 558 |
"provided, the reason string is copied and stored inside the QUIC connection " |
| 559 |
"SSL object and need not remain allocated after the call to " |
| 560 |
"B<SSL_shutdown_ex()> returns. Reason strings are bounded by the path MTU and " |
| 561 |
"may be silently truncated if they are too long to fit in a QUIC packet." |
| 562 |
msgstr "" |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: archlinux debian-trixie debian-unstable |
| 566 |
msgid "" |
| 567 |
"Reason strings are intended for human diagnostic purposes only, and should " |
| 568 |
"not be used for application signalling." |
| 569 |
msgstr "" |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux debian-trixie debian-unstable |
| 573 |
msgid "" |
| 574 |
"The arguments to B<SSL_shutdown_ex()> are used only on the first call to " |
| 575 |
"\\&B<SSL_shutdown_ex()> (or B<SSL_shutdown()>) for a given QUIC connection " |
| 576 |
"SSL object. These arguments are ignored on subsequent calls." |
| 577 |
msgstr "" |
| 578 |
|
| 579 |
#. type: Plain text |
| 580 |
#: archlinux debian-trixie debian-unstable |
| 581 |
msgid "" |
| 582 |
"These functions do not affect an underlying network BIO or the resource it " |
| 583 |
"represents; for example, a UDP datagram provided to a QUIC connection as the " |
| 584 |
"network BIO will remain open." |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#. type: Plain text |
| 588 |
#: archlinux debian-trixie debian-unstable |
| 589 |
msgid "" |
| 590 |
"Note that when using QUIC, an application must call B<SSL_shutdown()> if it " |
| 591 |
"wants to ensure that all transmitted data was received by the peer. This is " |
| 592 |
"unlike a TLS/TCP connection, where reliable transmission of buffered data is " |
| 593 |
"the responsibility of the operating system. If an application calls " |
| 594 |
"B<SSL_free()> on a QUIC connection SSL object or exits before completing the " |
| 595 |
"shutdown process using \\&B<SSL_shutdown()>, data which was written by the " |
| 596 |
"application using B<SSL_write()>, but could not yet be transmitted, or which " |
| 597 |
"was sent but lost in the network, may not be received by the peer." |
| 598 |
msgstr "" |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: archlinux debian-trixie debian-unstable |
| 602 |
msgid "" |
| 603 |
"When using QUIC, calling B<SSL_shutdown()> allows internal network event " |
| 604 |
"processing to be performed. It is important that this processing is " |
| 605 |
"performed regularly, whether during connection usage or during shutdown. If " |
| 606 |
"an application is not using thread assisted mode, an application conducting " |
| 607 |
"shutdown should either ensure that B<SSL_shutdown()> is called regularly, or " |
| 608 |
"alternatively ensure that \\&B<SSL_handle_events()> is called regularly. See " |
| 609 |
"B<openssl-quic>\\|(7) and \\&B<SSL_handle_events>\\|(3) for more information." |
| 610 |
msgstr "" |
| 611 |
|
| 612 |
#. type: IX |
| 613 |
#: archlinux debian-trixie debian-unstable |
| 614 |
#, no-wrap |
| 615 |
msgid "Application Data Drainage Behaviour" |
| 616 |
msgstr "" |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable |
| 620 |
msgid "" |
| 621 |
"When using QUIC, B<SSL_shutdown()> or B<SSL_shutdown_ex()> ordinarily waits " |
| 622 |
"until all data written to a stream by an application has been acknowledged " |
| 623 |
"by the peer. In other words, the shutdown process waits until all data " |
| 624 |
"written by the application has been sent to the peer, and until the receipt " |
| 625 |
"of all such data is acknowledged by the peer. Only once this process is " |
| 626 |
"completed is the shutdown considered complete." |
| 627 |
msgstr "" |
| 628 |
|
| 629 |
#. type: Plain text |
| 630 |
#: archlinux debian-trixie debian-unstable |
| 631 |
msgid "" |
| 632 |
"An exception to this is streams which terminated in a non-normal fashion, " |
| 633 |
"for example due to a stream reset; only streams which are non-terminated at " |
| 634 |
"the time \\&B<SSL_shutdown()> is called, or which terminated in a normal " |
| 635 |
"fashion, have their pending send buffers flushed in this manner." |
| 636 |
msgstr "" |
| 637 |
|
| 638 |
#. type: Plain text |
| 639 |
#: archlinux debian-trixie debian-unstable |
| 640 |
msgid "" |
| 641 |
"This behaviour of flushing streams during the shutdown process can be " |
| 642 |
"skipped by setting the B<SSL_SHUTDOWN_FLAG_NO_STREAM_FLUSH> flag in a call " |
| 643 |
"to \\&B<SSL_shutdown_ex()>; in this case, data remaining in stream send " |
| 644 |
"buffers may not be transmitted to the peer. This flag may be used when a non-" |
| 645 |
"normal application condition has occurred and the delivery of data written " |
| 646 |
"to streams via \\&B<SSL_write>\\|(3) is no longer relevant." |
| 647 |
msgstr "" |
| 648 |
|
| 649 |
#. type: IX |
| 650 |
#: archlinux debian-trixie debian-unstable |
| 651 |
#, no-wrap |
| 652 |
msgid "Shutdown Mode" |
| 653 |
msgstr "" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable |
| 657 |
msgid "" |
| 658 |
"Aspects of how QUIC handles connection closure must be taken into account by " |
| 659 |
"applications. Ordinarily, QUIC expects a connection to continue to be " |
| 660 |
"serviced for a substantial period of time after it is nominally closed. This " |
| 661 |
"is necessary to ensure that any connection closure notification sent to the " |
| 662 |
"peer was successfully received. However, a consequence of this is that a " |
| 663 |
"fully RFC-compliant QUIC connection closure process could take of the order " |
| 664 |
"of seconds. This may be unsuitable for some applications, such as short-" |
| 665 |
"lived processes which need to exit immediately after completing an " |
| 666 |
"application-layer transaction." |
| 667 |
msgstr "" |
| 668 |
|
| 669 |
#. type: Plain text |
| 670 |
#: archlinux debian-trixie debian-unstable |
| 671 |
msgid "" |
| 672 |
"As such, there are two shutdown modes available to users of QUIC connection " |
| 673 |
"SSL objects:" |
| 674 |
msgstr "" |
| 675 |
|
| 676 |
#. type: IX |
| 677 |
#: archlinux debian-trixie debian-unstable |
| 678 |
#, no-wrap |
| 679 |
msgid "RFC compliant shutdown mode" |
| 680 |
msgstr "" |
| 681 |
|
| 682 |
#. type: Plain text |
| 683 |
#: archlinux debian-trixie debian-unstable |
| 684 |
msgid "" |
| 685 |
"This is the default behaviour. The shutdown process may take a period of " |
| 686 |
"time up to three times the current estimated RTT to the peer. It is possible " |
| 687 |
"for the closure process to complete much faster in some circumstances but " |
| 688 |
"this cannot be relied upon." |
| 689 |
msgstr "" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-trixie debian-unstable |
| 693 |
msgid "" |
| 694 |
"In blocking mode, the function will return once the closure process is " |
| 695 |
"complete. In nonblocking mode, B<SSL_shutdown_ex()> should be called until " |
| 696 |
"it returns 1, indicating the closure process is complete and the connection " |
| 697 |
"is now fully shut down." |
| 698 |
msgstr "" |
| 699 |
|
| 700 |
#. type: IX |
| 701 |
#: archlinux debian-trixie debian-unstable |
| 702 |
#, no-wrap |
| 703 |
msgid "Rapid shutdown mode" |
| 704 |
msgstr "" |
| 705 |
|
| 706 |
#. type: Plain text |
| 707 |
#: archlinux debian-trixie debian-unstable |
| 708 |
msgid "" |
| 709 |
"In this mode, the peer is notified of connection closure on a best effort " |
| 710 |
"basis by sending a single QUIC packet. If that QUIC packet is lost, the peer " |
| 711 |
"will not know that the connection has terminated until the negotiated idle " |
| 712 |
"timeout (if any) expires." |
| 713 |
msgstr "" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable |
| 717 |
msgid "" |
| 718 |
"This will generally return 0 on success, indicating that the connection has " |
| 719 |
"not yet been fully shut down (unless it has already done so, in which case " |
| 720 |
"it will return 1)." |
| 721 |
msgstr "" |
| 722 |
|
| 723 |
#. type: Plain text |
| 724 |
#: archlinux debian-trixie debian-unstable |
| 725 |
msgid "" |
| 726 |
"If B<SSL_SHUTDOWN_FLAG_RAPID> is specified in I<flags>, a rapid shutdown is " |
| 727 |
"performed, otherwise an RFC-compliant shutdown is performed." |
| 728 |
msgstr "" |
| 729 |
|
| 730 |
#. type: Plain text |
| 731 |
#: archlinux debian-trixie debian-unstable |
| 732 |
msgid "" |
| 733 |
"If an application calls B<SSL_shutdown_ex()> with " |
| 734 |
"B<SSL_SHUTDOWN_FLAG_RAPID>, an application can subsequently change its mind " |
| 735 |
"about performing a rapid shutdown by making a subsequent call to " |
| 736 |
"B<SSL_shutdown_ex()> without the flag set." |
| 737 |
msgstr "" |
| 738 |
|
| 739 |
#. type: IX |
| 740 |
#: archlinux debian-trixie debian-unstable |
| 741 |
#, no-wrap |
| 742 |
msgid "Peer-Initiated Shutdown" |
| 743 |
msgstr "" |
| 744 |
|
| 745 |
#. type: Plain text |
| 746 |
#: archlinux debian-trixie debian-unstable |
| 747 |
msgid "" |
| 748 |
"In some cases, an application may wish to wait for a shutdown initiated by " |
| 749 |
"the peer rather than triggered locally. To do this, call " |
| 750 |
"B<SSL_shutdown_ex()> with \\&I<SSL_SHUTDOWN_FLAG_WAIT_PEER> specified in " |
| 751 |
"I<flags>. In blocking mode, this waits until the peer initiates a shutdown " |
| 752 |
"or the connection otherwise becomes terminated for another reason. In " |
| 753 |
"nonblocking mode it exits immediately with either success or failure " |
| 754 |
"depending on whether a shutdown has occurred." |
| 755 |
msgstr "" |
| 756 |
|
| 757 |
#. type: Plain text |
| 758 |
#: archlinux debian-trixie debian-unstable |
| 759 |
msgid "" |
| 760 |
"If a locally initiated shutdown has already been triggered or the connection " |
| 761 |
"has started terminating for another reason, this flag has no effect." |
| 762 |
msgstr "" |
| 763 |
|
| 764 |
#. type: Plain text |
| 765 |
#: archlinux debian-trixie debian-unstable |
| 766 |
msgid "" |
| 767 |
"\\&B<SSL_SHUTDOWN_FLAG_WAIT_PEER> implies " |
| 768 |
"B<SSL_SHUTDOWN_FLAG_NO_STREAM_FLUSH>, as stream data cannot be flushed after " |
| 769 |
"a peer closes the connection. Stream data may still be sent to the peer in " |
| 770 |
"any time spent waiting before the peer closes the connection, though there " |
| 771 |
"is no guarantee of this." |
| 772 |
msgstr "" |
| 773 |
|
| 774 |
#. type: IX |
| 775 |
#: archlinux debian-trixie debian-unstable |
| 776 |
#, no-wrap |
| 777 |
msgid "Nonblocking Mode" |
| 778 |
msgstr "" |
| 779 |
|
| 780 |
#. type: Plain text |
| 781 |
#: archlinux debian-trixie debian-unstable |
| 782 |
msgid "" |
| 783 |
"\\&B<SSL_shutdown()> and B<SSL_shutdown_ex()> block if the connection is " |
| 784 |
"configured in blocking mode. This may be overridden by specifying " |
| 785 |
"\\&B<SSL_SHUTDOWN_FLAG_NO_BLOCK> in I<flags> when calling " |
| 786 |
"B<SSL_shutdown_ex()>, which causes the call to operate as though in " |
| 787 |
"nonblocking mode." |
| 788 |
msgstr "" |
| 789 |
|
| 790 |
#. type: IX |
| 791 |
#: archlinux debian-trixie debian-unstable |
| 792 |
#, no-wrap |
| 793 |
msgid "RETURN VALUES" |
| 794 |
msgstr "" |
| 795 |
|
| 796 |
#. type: Plain text |
| 797 |
#: archlinux debian-trixie debian-unstable |
| 798 |
msgid "" |
| 799 |
"For both B<SSL_shutdown()> and B<SSL_shutdown_ex()> the following return " |
| 800 |
"values can occur:" |
| 801 |
msgstr "" |
| 802 |
|
| 803 |
#. type: IP |
| 804 |
#: archlinux debian-trixie debian-unstable |
| 805 |
#, no-wrap |
| 806 |
msgid "0" |
| 807 |
msgstr "" |
| 808 |
|
| 809 |
#. type: Plain text |
| 810 |
#: archlinux debian-trixie debian-unstable |
| 811 |
msgid "The shutdown process is ongoing and has not yet completed." |
| 812 |
msgstr "" |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: archlinux debian-trixie debian-unstable |
| 816 |
msgid "" |
| 817 |
"For TLS and DTLS, this means that a close_notify alert has been sent but the " |
| 818 |
"peer has not yet replied in turn with its own close_notify." |
| 819 |
msgstr "" |
| 820 |
|
| 821 |
#. type: Plain text |
| 822 |
#: archlinux debian-trixie debian-unstable |
| 823 |
msgid "" |
| 824 |
"For QUIC connection SSL objects, a CONNECTION_CLOSE frame may have been sent " |
| 825 |
"but the connection closure process has not yet completed." |
| 826 |
msgstr "" |
| 827 |
|
| 828 |
#. type: Plain text |
| 829 |
#: archlinux debian-trixie debian-unstable |
| 830 |
msgid "" |
| 831 |
"Unlike most other functions, returning 0 does not indicate an error. " |
| 832 |
"\\&B<SSL_get_error>\\|(3) should not be called; it may misleadingly indicate " |
| 833 |
"an error even though no error occurred." |
| 834 |
msgstr "" |
| 835 |
|
| 836 |
#. type: IX |
| 837 |
#: archlinux debian-trixie debian-unstable |
| 838 |
#, no-wrap |
| 839 |
msgid "1" |
| 840 |
msgstr "" |
| 841 |
|
| 842 |
#. type: Plain text |
| 843 |
#: archlinux debian-trixie debian-unstable |
| 844 |
msgid "The shutdown was successfully completed." |
| 845 |
msgstr "" |
| 846 |
|
| 847 |
#. type: Plain text |
| 848 |
#: archlinux |
| 849 |
msgid "" |
| 850 |
"For TLS and DTLS, this means that a close_notify alert was sent and the " |
| 851 |
"peer\\*(Aqs close_notify alert was received." |
| 852 |
msgstr "" |
| 853 |
|
| 854 |
#. type: Plain text |
| 855 |
#: archlinux debian-trixie debian-unstable |
| 856 |
msgid "" |
| 857 |
"For QUIC connection SSL objects, this means that the connection closure " |
| 858 |
"process has completed." |
| 859 |
msgstr "" |
| 860 |
|
| 861 |
#. type: IX |
| 862 |
#: archlinux debian-trixie debian-unstable |
| 863 |
#, no-wrap |
| 864 |
msgid "E<lt>0" |
| 865 |
msgstr "" |
| 866 |
|
| 867 |
#. type: Plain text |
| 868 |
#: archlinux debian-trixie debian-unstable |
| 869 |
msgid "" |
| 870 |
"The shutdown was not successful. Call B<SSL_get_error>\\|(3) with the " |
| 871 |
"return value B<ret> to find out the reason. It can occur if an action is " |
| 872 |
"needed to continue the operation for nonblocking BIOs." |
| 873 |
msgstr "" |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: archlinux debian-trixie debian-unstable |
| 877 |
msgid "" |
| 878 |
"It can also occur when not all data was read using B<SSL_read()>, or if " |
| 879 |
"called on a QUIC stream SSL object." |
| 880 |
msgstr "" |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: archlinux debian-trixie debian-unstable |
| 884 |
msgid "This value is also returned when called on QUIC stream SSL objects." |
| 885 |
msgstr "" |
| 886 |
|
| 887 |
#. type: IX |
| 888 |
#: archlinux debian-trixie debian-unstable |
| 889 |
#, no-wrap |
| 890 |
msgid "SEE ALSO" |
| 891 |
msgstr "" |
| 892 |
|
| 893 |
#. type: Plain text |
| 894 |
#: archlinux debian-trixie debian-unstable |
| 895 |
msgid "" |
| 896 |
"\\&B<SSL_get_error>\\|(3), B<SSL_connect>\\|(3), \\&B<SSL_accept>\\|(3), " |
| 897 |
"B<SSL_set_shutdown>\\|(3), \\&B<SSL_CTX_set_quiet_shutdown>\\|(3), " |
| 898 |
"B<SSL_CTX_set_options>\\|(3) \\&B<SSL_clear>\\|(3), B<SSL_free>\\|(3), " |
| 899 |
"\\&B<ssl>\\|(7), B<bio>\\|(7)" |
| 900 |
msgstr "" |
| 901 |
|
| 902 |
#. type: IX |
| 903 |
#: archlinux debian-trixie debian-unstable |
| 904 |
#, no-wrap |
| 905 |
msgid "HISTORY" |
| 906 |
msgstr "" |
| 907 |
|
| 908 |
#. type: Plain text |
| 909 |
#: archlinux debian-trixie debian-unstable |
| 910 |
msgid "The B<SSL_shutdown_ex()> function was added in OpenSSL 3.2." |
| 911 |
msgstr "" |
| 912 |
|
| 913 |
#. type: IX |
| 914 |
#: archlinux debian-trixie debian-unstable |
| 915 |
#, no-wrap |
| 916 |
msgid "COPYRIGHT" |
| 917 |
msgstr "" |
| 918 |
|
| 919 |
#. type: Plain text |
| 920 |
#: archlinux debian-trixie debian-unstable |
| 921 |
msgid "Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved." |
| 922 |
msgstr "" |
| 923 |
|
| 924 |
#. type: Plain text |
| 925 |
#: archlinux debian-trixie debian-unstable |
| 926 |
msgid "" |
| 927 |
"Licensed under the Apache License 2.0 (the \"License\"). You may not use " |
| 928 |
"this file except in compliance with the License. You can obtain a copy in " |
| 929 |
"the file LICENSE in the source distribution or at E<lt>https://" |
| 930 |
"www.openssl.org/source/license.htmlE<gt>." |
| 931 |
msgstr "" |
| 932 |
|
| 933 |
#. ======================================================================== |
| 934 |
#. type: IX |
| 935 |
#: debian-trixie debian-unstable |
| 936 |
#, no-wrap |
| 937 |
msgid "SSL_SHUTDOWN 3SSL" |
| 938 |
msgstr "" |
| 939 |
|
| 940 |
#. type: TH |
| 941 |
#: debian-trixie |
| 942 |
#, no-wrap |
| 943 |
msgid "3.5.6" |
| 944 |
msgstr "" |
| 945 |
|
| 946 |
#. type: Plain text |
| 947 |
#: debian-trixie debian-unstable |
| 948 |
msgid "" |
| 949 |
"Calling B<SSL_shutdown()> only closes the write direction of the connection; " |
| 950 |
"the read direction is closed by the peer. Once B<SSL_shutdown()> is called, " |
| 951 |
"\\&B<SSL_write>\\|(3) can no longer be used, but B<SSL_read>\\|(3) may still " |
| 952 |
"be used until the peer decides to close the connection in turn. The peer " |
| 953 |
"might continue sending data for some period of time before handling the " |
| 954 |
"local application's shutdown indication." |
| 955 |
msgstr "" |
| 956 |
|
| 957 |
#. type: Plain text |
| 958 |
#: debian-trixie debian-unstable |
| 959 |
msgid "" |
| 960 |
"However, the preferred method of waiting for the shutdown to complete is to " |
| 961 |
"use \\&B<SSL_read>\\|(3) until B<SSL_get_error>\\|(3) indicates EOF by " |
| 962 |
"returning \\&B<SSL_ERROR_ZERO_RETURN>. This ensures any data received " |
| 963 |
"immediately before the peer's close_notify alert is still provided to the " |
| 964 |
"application. It also ensures any final handshake-layer messages received are " |
| 965 |
"processed (for example, messages issuing new session tickets)." |
| 966 |
msgstr "" |
| 967 |
|
| 968 |
#. type: Plain text |
| 969 |
#: debian-trixie debian-unstable |
| 970 |
msgid "" |
| 971 |
"If this approach is not used, the second call to B<SSL_shutdown()> (to " |
| 972 |
"complete the shutdown by confirming receipt of the peer's close_notify " |
| 973 |
"message) will fail if it is called when the application has not read all " |
| 974 |
"pending application data sent by the peer using B<SSL_read>\\|(3)." |
| 975 |
msgstr "" |
| 976 |
|
| 977 |
#. type: Plain text |
| 978 |
#: debian-trixie debian-unstable |
| 979 |
msgid "" |
| 980 |
"Alternatively, it is acceptable for an application to call B<SSL_shutdown()> " |
| 981 |
"once (such that it returns 0) and then close the underlying connection " |
| 982 |
"without waiting for the peer's response. This allows for a more rapid " |
| 983 |
"shutdown process if the application does not wish to wait for the peer." |
| 984 |
msgstr "" |
| 985 |
|
| 986 |
#. type: Plain text |
| 987 |
#: debian-trixie debian-unstable |
| 988 |
msgid "" |
| 989 |
"This is not standards-compliant behaviour. It should only be done when the " |
| 990 |
"application protocol in use enables the peer to ensure that all data has " |
| 991 |
"been received, such that it doesn't need to wait for a close_notify alert, " |
| 992 |
"otherwise application data may be truncated unexpectedly." |
| 993 |
msgstr "" |
| 994 |
|
| 995 |
#. type: Plain text |
| 996 |
#: debian-trixie debian-unstable |
| 997 |
msgid "" |
| 998 |
"For TLS and DTLS, this means that a close_notify alert was sent and the " |
| 999 |
"peer's close_notify alert was received." |
| 1000 |
msgstr "" |