<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.openssl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.openssl-pkcs7-verify.php',
    1 => 'openssl_pkcs7_verify',
    2 => '&Uuml;berpr&uuml;ft die Signatur einer mit S/MIME signierten Nachricht',
  ),
  'up' => 
  array (
    0 => 'ref.openssl.php',
    1 => 'OpenSSL-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.openssl-pkcs7-sign.php',
    1 => 'openssl_pkcs7_sign',
  ),
  'next' => 
  array (
    0 => 'function.openssl-pkey-derive.php',
    1 => 'openssl_pkey_derive',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/openssl/functions/openssl-pkcs7-verify.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.openssl-pkcs7-verify" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openssl_pkcs7_verify</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">openssl_pkcs7_verify</span> &mdash; <span class="dc-title">Überprüft die Signatur einer mit S/MIME signierten Nachricht</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.openssl-pkcs7-verify-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openssl_pkcs7_verify</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$input_filename</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$signers_certificates_filename</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$ca_info</code><span class="initializer"> = []</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$untrusted_certificates_filename</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$content</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$output_filename</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>openssl_pkcs7_verify()</strong></span> liest die in der angegebenen
   Datei enthaltene S/MIME-Nachricht und untersucht die digitale Signatur.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-pkcs7-verify-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">input_filename</code></dt>
     <dd>
      <p class="para">
       Der Pfad zur Datei.
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Mit dem Parameter <code class="parameter">flags</code> wird beeinflusst, auf
       welche Art die Signatur verifiziert wird. Für mehr Informationen siehe
       <a href="openssl.pkcs7.flags.php" class="link">PKCS7-Konstanten</a>
      </p>
     </dd>
    
    
     <dt><code class="parameter">signers_certificates_filename</code></dt>
     <dd>
      <p class="para">
       Wird der Parameter <code class="parameter">signers_certificates_filename</code>
       angegeben, muss dies eine Zeichenkette sein, die den Namen einer Datei
       enthält, in der das Zertifikat der unterzeichnenden Person im
       <abbr title="Privacy-Enhanced Mail">PEM</abbr>-Format gespeichert wird.
      </p>
     </dd>
    
    
     <dt><code class="parameter">ca_info</code></dt>
     <dd>
      <p class="para">
       Wird der Parameter <code class="parameter">ca_info</code> angegeben, muss er
       Informationen über die vertrauenswürdigen CA-Zertifikate enthalten, die
       für den Überprüfungsprozess verwendet werden. Für weitere Informationen
       siehe
       <a href="openssl.cert.verification.php" class="link">Überprüfung von Zertifikaten</a>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">untrusted_certificates_filename</code></dt>
     <dd>
      <p class="para">
       Wird der Parameter
       <code class="parameter">untrusted_certificates_filename</code> angegeben, ist
       es der Name einer Datei, die mehrere extra Zertifikate enthält, die als
       nicht vertrauenswürdige CAs verwendet werden.
      </p>
     </dd>
    
    
     <dt><code class="parameter">content</code></dt>
     <dd>
      <p class="para">
       Mit <code class="parameter">content</code> kann der Name einer Datei angegeben
       werden, die mit den verifizierten Daten gefüllt wird, wobei die
       Signaturinformationen entfernt werden.
      </p>
     </dd>
    
    
     <dt><code class="parameter">output_filename</code></dt>
     <dd>
      <p class="para">
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-pkcs7-verify-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück, wenn die Signatur verifiziert werden konnte, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
   wenn die Signatur nicht korrekt ist (die Daten wurden verändert oder das
   signierende Zertifikat ist ungültig), oder -1 im Falle eines Fehlers.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.openssl-pkcs7-verify-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">signers_certificates_filename</code>,
       <code class="parameter">untrusted_certificates_filename</code>,
       <code class="parameter">Inhalt</code> und
       <code class="parameter">Ausgabedateiname</code> sind nun vom Typ Nullable.
      </td>
     </tr>

     <tr>
      <td>7.2.0</td>
      <td>
       Der Parameter <code class="parameter">output_filename</code> wurde hinzugefügt.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.openssl-pkcs7-verify-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <span class="simpara">
    Wie in RFC 2045 spezifiziert, dürfen die Zeilen im Parameter
    <code class="parameter">input_filename</code> nicht länger als 76 Zeichen sein.
   </span>
  </p></blockquote>
 </div>


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