<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/openssl.constants.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'openssl.pkcs7.flags.php',
    1 => 'Constantes/options PKCS7',
    2 => 'Constantes/options PKCS7',
  ),
  'up' => 
  array (
    0 => 'openssl.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'prev' => 
  array (
    0 => 'openssl.key-types.php',
    1 => 'Types de cl&eacute;s',
  ),
  'next' => 
  array (
    0 => 'openssl.cms.flags.php',
    1 => 'Drapeaux/Constantes CMS',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/openssl/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="openssl.pkcs7.flags" class="section">
   <h2 class="title">Constantes/options <abbr>PKCS7</abbr></h2>
   <p class="para">
    Les fonctions S/MIME utilisent des options qui sont spécifiées
    par un champ de bits. Les valeurs valides sont :
    <table class="doctable table">
     <caption><strong>Constantes <abbr>PKCS7</abbr></strong></caption>
     
      <thead>
       <tr>
        <th>Constante</th>
        <th>Description</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr id="constant.pkcs7-text">
        <td>
         <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-text">PKCS7_TEXT</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Ajoute le texte plein en clair dans les en-têtes du message
        signé/chiffré. Lors du déchiffrement ou de la vérification,
        il supprime purement et simplement ces données. Si le
        message chiffré ou signé n&#039;est pas du type MIME, une erreur
        surviendra.
       </td>
      </tr>

      <tr id="constant.pkcs7-binary">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-binary">PKCS7_BINARY</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Normalement, le message est converti au format canonique
        qui utilise effectivement des <code class="literal">CR</code> et <code class="literal">LF</code>
        comme fin de ligne, comme demandé dans les spécifications de S/MIME.
        Lorsque cette option est activée, le message ne sera
        pas converti. Cela sert lorsqu&#039;on manipule des données
        binaires qui ne sont pas au format MIME.
       </td>
      </tr>

      <tr id="constant.pkcs7-nointern">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-nointern">PKCS7_NOINTERN</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Lors de la vérification d&#039;un message, les certificats
        (s&#039;il y en a) inclus dans le message sont normalement
        utilisés pour rechercher le certificat de signature. Avec
        cette option, seul le certificat spécifié par le
        paramètre <code class="parameter">untrusted_certificates_filename</code> de la fonction
        <span class="function"><a href="function.openssl-pkcs7-verify.php" class="function">openssl_pkcs7_verify()</a></span> est utilisé.
        Les certificats fournis peuvent toujours être utilisés,
        avec un niveau de confiance réduit.
       </td>
      </tr>

      <tr id="constant.pkcs7-noverify">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-noverify">PKCS7_NOVERIFY</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Ne vérifie pas les certificats des signataires d&#039;un message
        signé.
       </td>
      </tr>

      <tr id="constant.pkcs7-nochain">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-nochain">PKCS7_NOCHAIN</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        N&#039;enchaîne pas les vérifications des signataires de
        certificats. C&#039;est-à-dire, n&#039;utilise pas les certificats
        contenus dans le message.
       </td>
      </tr>

      <tr id="constant.pkcs7-nocerts">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-nocerts">PKCS7_NOCERTS</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Lors de la signature d&#039;un message, le certificat du signataire
        est normalement inclus. Avec cette option, c&#039;est
        désactivé. Cela va réduire la taille du message,
        mais le vérificateur devra avoir une copie locale du certificat
        du signataire (passée au paramètre
        <code class="parameter">untrusted_certificates_filename</code>, avec la fonction
        <span class="function"><a href="function.openssl-pkcs7-verify.php" class="function">openssl_pkcs7_verify()</a></span>).
       </td>
      </tr>

      <tr id="constant.pkcs7-noattr">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-noattr">PKCS7_NOATTR</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Normalement, lorsqu&#039;un message est signé, un jeu d&#039;attributs
        contenant l&#039;heure de signature et l&#039;algorithme symétrique
        supportés, est inclus dans le message. Avec cette option,
        il n&#039;est pas inclus.
       </td>
      </tr>

      <tr id="constant.pkcs7-detached">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-detached">PKCS7_DETACHED</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Lors de la signature d&#039;un message, utilise la signature
        en texte clair, avec le type MIME <code class="literal">&quot;multipart/signed&quot;</code>.
        C&#039;est la valeur par défaut du paramètre
        <code class="parameter">flags</code>
        pour la fonction <span class="function"><a href="function.openssl-pkcs7-sign.php" class="function">openssl_pkcs7_sign()</a></span>.
        Si on annule cette option, le message sera signé de
        manière opaque, ce qui résiste mieux à la traduction
        des relais mail (certains anciens serveurs mail corrompent les
        messages), mais empêche la lecture par les clients emails qui ne
        connaissent pas S/MIME.
       </td>
      </tr>

      <tr id="constant.pkcs7-nosigs">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-nosigs">PKCS7_NOSIGS</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Ne vérifie pas les signatures d&#039;un message
       </td>
      </tr>

      <tr id="constant.pkcs7-nooldmimetype">
       <td>
        <strong><code><a href="openssl.pkcs7.flags.php#constant.pkcs7-nooldmimetype">PKCS7_NOOLDMIMETYPE</a></code></strong>
        (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
       </td>
       <td>
        Disponible à partir de PHP 8.3.0.
        Définit l&#039;en-tête HTTP Content-Type sur <code class="literal">application/pkcs7-mime</code> au lieu de
        <code class="literal">application/x-pkcs7-mime</code> pour chiffrer un message.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div><?php manual_footer($setup); ?>