.\" -*- 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_SESSION 3ssl" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SSL_SET_SESSION 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_session \- Définir une session TLS ou SSL à utiliser lors d'une connexion TLS ou SSL .SH SYNOPSIS .IX Header SYNOPSIS .Vb 1 \& #include \& \& int SSL_set_session(SSL *ssl, SSL_SESSION *session); .Ve .SH DESCRIPTION .IX Header DESCRIPTION \&\fBSSL_set_session()\fP sets \fBsession\fP to be used when the TLS/SSL connection is to be established. \fBSSL_set_session()\fP is only useful for TLS/SSL clients. When the session is set, the reference count of \fBsession\fP is incremented by 1. If the session is not reused, the reference count is decremented again during \fBSSL_connect()\fP. Whether the session was reused can be queried with the \fBSSL_session_reused\fP\|(3) call. .PP If there is already a session set inside \fBssl\fP (because it was set with \&\fBSSL_set_session()\fP before or because the same \fBssl\fP was already used for a connection), \fBSSL_SESSION_free()\fP will be called for that session. This is also the case when \fBsession\fP is a NULL pointer. If that old session is still \fBopen\fP, it is considered bad and will be removed from the session cache (if used). A session is considered open, if \fBSSL_shutdown\fP\|(3) was not called for the connection (or at least \fBSSL_set_shutdown\fP\|(3) was used to set the SSL_SENT_SHUTDOWN state). .SH NOTES .IX Header NOTES SSL_SESSION objects keep internal link information about the session cache list, when being inserted into one SSL_CTX object\*(Aqs session cache. One SSL_SESSION object, regardless of its reference count, must therefore only be used with one SSL_CTX object (and the SSL objects created from this SSL_CTX object). .SH "VALEURS RENVOYÉES" .IX Header "VALEURS RENVOYÉES" Les valeurs suivantes peuvent être renvoyées. .IP 0 4 L'opération a échoué ; vérifiez la pile d'erreur pour découvrir la raison. .IP 1 4 .IX Item 1 L'opération a réussi. .SH "VOIR AUSSI" .IX Header "VOIR AUSSI" \&\fBssl\fP\|(7), \fBSSL_SESSION_free\fP\|(3), \&\fBSSL_get_session\fP\|(3), \&\fBSSL_session_reused\fP\|(3), \&\fBSSL_CTX_set_session_cache_mode\fP\|(3) .SH COPYRIGHT .IX Header COPYRIGHT Copyright 2000\-2022 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 .