.\" -*- 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 "SMIME_READ_CMS 3ssl" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SMIME_READ_CMS 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 SMIME_read_CMS_ex, SMIME_read_CMS \- Analyser un message S/MIME .SH SYNOPSIS .IX Header SYNOPSIS .Vb 1 \& #include \& \& CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, \& CMS_ContentInfo **cms); \& CMS_ContentInfo *SMIME_read_CMS(BIO *in, BIO **bcont); .Ve .SH DESCRIPTION .IX Header DESCRIPTION \&\fBSMIME_read_CMS()\fP parses a message in S/MIME format. .PP \&\fBin\fP est un BIO où lire le message. .PP Si la signature en texte clair est utilisée, alors le contenu est mémorisé dans un tampon écrit dans \fB*\fP\fIbcont\fP, sinon \fB*\fP\fIbcont\fP est défini à NULL. .PP La structure CMS_ContentInfo analysée est renvoyée, ou NULL en cas d'erreur. .PP \&\fBSMIME_read_CMS_ex()\fP is similar to \fBSMIME_read_CMS()\fP but optionally a previously created \fIcms\fP CMS_ContentInfo object can be supplied as well as some \fIflags\fP. To create a \fIcms\fP object use \fBCMS_ContentInfo_new_ex\fP\|(3). If the \fIflags\fP argument contains \fBCMS_BINARY\fP then the input is assumed to be in binary format and is not translated to canonical form. If in addition \fBSMIME_ASCIICRLF\fP is set then the binary input is assumed to be followed by \fBCR\fP and \fBLF\fP characters, else only by an \fBLF\fP character. If \fIflags\fP is 0 and \fIcms\fP is NULL then it is identical to \fBSMIME_read_CMS()\fP. .SH NOTES .IX Header NOTES If \fB*bcont\fP is not NULL then the message is clear text signed. \fB*bcont\fP can then be passed to \fBCMS_verify()\fP with the \fBCMS_DETACHED\fP flag set. .PP Otherwise the type of the returned structure can be determined using \fBCMS_get0_type()\fP. .PP Pour permettre de futures fonctionnalités, si \fIbcont\fP n'est pas NULL, \fB*\fP\fIbcont\fP devrait être initialisé à NULL. Par exemple : .PP .Vb 2 \& BIO *cont = NULL; \& CMS_ContentInfo *cms; \& \& cms = SMIME_read_CMS(in, &cont); .Ve .SH BOGUES .IX Header BOGUES The MIME parser used by \fBSMIME_read_CMS()\fP is somewhat primitive. While it will handle most S/MIME messages more complex compound formats may not work. .PP L'analyseur assume que la structure CMS_ContentInfo est toujours encodée en base64 et ne traitera pas le cas où elle est au format binaire ou utilise le format Quoted\-Printable. .PP L'utilisation d'un BIO mémoire pour stocker le contenu signé limite la taille du message qui peut être traité, à cause de restrictions de la mémoire : une option de flux en une seule passe devrait être disponible. .SH "VALEURS RENVOYÉES" .IX Header "VALEURS RENVOYÉES" \&\fBSMIME_read_CMS_ex()\fP and \fBSMIME_read_CMS()\fP return a valid \fBCMS_ContentInfo\fP structure or \fBNULL\fP if an error occurred. The error can be obtained from \&\fBERR_get_error\fP\|(3). .SH "VOIR AUSSI" .IX Header "VOIR AUSSI" \&\fBERR_get_error\fP\|(3), \&\fBCMS_sign\fP\|(3), \&\fBCMS_verify\fP\|(3), \&\fBCMS_encrypt\fP\|(3), \&\fBCMS_decrypt\fP\|(3) .SH HISTORIQUE .IX Header HISTORIQUE The function \fBSMIME_read_CMS_ex()\fP was added in OpenSSL 3.0. .SH COPYRIGHT .IX Header COPYRIGHT Copyright 2008\-2021 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 David Prévot . .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 .