.\" -*- coding: UTF-8 -*- .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .de IX .. .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .if n .ds AD l .\" .\" Required to disable full justification in groff 1.23.0. .\" ======================================================================== .\" .IX Title "SSL_SET_SHUTDOWN 3ssl" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SSL_SET_SHUTDOWN 3ssl "5 août 2025" 3.5.2 OpenSSL .if n .ad l .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .nh .SH NOM SSL_set_shutdown, SSL_get_shutdown \- Manipuler l'état d'arrêt d'une connexion SSL .SH SYNOPSIS .IX Header SYNOPSIS .Vb 1 \& #include \& \& void SSL_set_shutdown(SSL *ssl, int mode); \& \& int SSL_get_shutdown(const SSL *ssl); .Ve .SH DESCRIPTION .IX Header DESCRIPTION \&\fBSSL_set_shutdown()\fP sets the shutdown state of \fBssl\fP to \fBmode\fP. .PP \&\fBSSL_get_shutdown()\fP returns the shutdown mode of \fBssl\fP. .SH NOTES .IX Header NOTES L'état d'arrêt d'une connexion SSL est un masque binaire des valeurs suivantes. .IP 0 4 Réglages d’arrêt pas encore définis. .IP \fBSSL_SENT_SHUTDOWN\fP 4 .IX Item \fBSSL_SENT_SHUTDOWN\fP Une notification d’arrêt (« close_notify ») a été envoyée au pair, la connexion est considérée comme terminée et la session est terminée et correcte. .IP \fBSSL_RECEIVED_SHUTDOWN\fP 4 .IX Item \fBSSL_RECEIVED_SHUTDOWN\fP Une alerte de fermeture a été reçue d'un pair, soit une notification normale « close_notify », soit une erreur fatale. .PP \fBSSL_SENT_SHUTDOWN\fP et \fBSSL_RECEIVED_SHUTDOWN\fP peuvent être définis en même temps. .PP The shutdown state of the connection is used to determine the state of the ssl session. If the session is still open, when \&\fBSSL_clear\fP\|(3) or \fBSSL_free\fP\|(3) is called, it is considered bad and removed according to RFC2246. The actual condition for a correctly closed session is SSL_SENT_SHUTDOWN (according to the TLS RFC, it is acceptable to only send the close_notify alert but to not wait for the peer\*(Aqs answer, when the underlying connection is closed). \&\fBSSL_set_shutdown()\fP can be used to set this state without sending a close alert to the peer (see \fBSSL_shutdown\fP\|(3)). .PP If a close_notify was received, SSL_RECEIVED_SHUTDOWN will be set, for setting SSL_SENT_SHUTDOWN the application must however still call \&\fBSSL_shutdown\fP\|(3) or \fBSSL_set_shutdown()\fP itself. .PP \&\fBSSL_set_shutdown()\fP is not supported for QUIC SSL objects. .SH "VALEURS RENVOYÉES" .IX Header "VALEURS RENVOYÉES" \&\fBSSL_set_shutdown()\fP does not return diagnostic information. .PP \&\fBSSL_get_shutdown()\fP returns the current shutdown state as set or based on the actual connection state. .PP \&\fBSSL_get_shutdown()\fP returns 0 if called on a QUIC stream SSL object. If it is called on a QUIC connection SSL object, it returns a value with SSL_SENT_SHUTDOWN set if CONNECTION_CLOSE has been sent to the peer and it returns a value with SSL_RECEIVED_SHUTDOWN set if CONNECTION_CLOSE has been received from the peer or the QUIC connection is fully terminated for other reasons. .SH "VOIR AUSSI" .IX Header "VOIR AUSSI" \&\fBssl\fP\|(7), \fBSSL_shutdown\fP\|(3), \&\fBSSL_CTX_set_quiet_shutdown\fP\|(3), \&\fBSSL_clear\fP\|(3), \fBSSL_free\fP\|(3) .SH COPYRIGHT .IX Header COPYRIGHT Copyright 2001\-2023 Les auteurs du projet OpenSSL. Tous droits réservés. .PP Sous licence Apache 2.0 (la « Licence »). Vous ne pouvez utiliser ce fichier que conformément à la Licence. Vous trouverez une copie dans le fichier \s-1LICENSE\s0 de la distribution du source ou à l'adresse . .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Nicolas François , David Prévot et Lucas Laugier . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .