⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.openssl-pkcs7-verify.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Verifies the signature of an S/MIME signed message</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-pkcs7-sign.html">openssl_pkcs7_sign</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-pkey-export-to-file.html">openssl_pkey_export_to_file</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><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)</p><p class="refpurpose"><span class="refname">openssl_pkcs7_verify</span> &mdash; <span class="dc-title">Verifies the signature of an S/MIME signed message</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><b><b>openssl_pkcs7_verify</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$filename</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$flags</tt></span>   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$outfilename</tt></span>   [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$cainfo</tt></span>   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$extracerts</tt></span>   [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$content</tt></span>  ]]]] )</div>  <p class="para rdfs-comment">   <b>openssl_pkcs7_verify()</b> reads the S/MIME message   contained in the given file and examines the digital signature.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">filename</tt></i></span>     <dd>      <p class="para">       Path to the message.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">flags</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">flags</tt></i> can be used to affect how the signature is       verified - see <a href="openssl.pkcs7.flags.html" class="link">PKCS7 constants</a>       for more information.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">outfilename</tt></i></span>     <dd>      <p class="para">       If the <i><tt class="parameter">outfilename</tt></i> is specified, it should be a       string holding the name of a file into which the certificates of the       persons that signed the messages will be stored in PEM format.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">cainfo</tt></i></span>     <dd>      <p class="para">       If the <i><tt class="parameter">cainfo</tt></i> is specified, it should hold       information about the trusted CA certificates to use in the verification       process - see <a href="openssl.cert.verification.html" class="link">certificate       verification</a> for more information about this parameter.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">extracerts</tt></i></span>     <dd>      <p class="para">       If the <i><tt class="parameter">extracerts</tt></i> is specified, it is the filename       of a file containing a bunch of certificates to use as untrusted CAs.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">content</tt></i></span>     <dd>      <p class="para">       You can specify a filename with <i><tt class="parameter">content</tt></i> that will       be filled with the verified data, but with the signature information       stripped.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> if the signature is verified, <b><tt>FALSE</tt></b> if it is not correct   (the message has been tampered with, or the signing certificate is invalid),   or -1 on error.  </p> </div> <div class="refsect1 changelog">  <h3 class="title">ChangeLog</h3>  <p class="para">   <table class="informaltable">    <colgroup>     <thead valign="middle">      <tr valign="middle">       <th colspan="1">Version</th>       <th colspan="1">Description</th>      </tr>     </thead>     <tbody valign="middle" class="tbody">      <tr valign="middle">       <td colspan="1" rowspan="1" align="left">5.1.0</td>       <td colspan="1" rowspan="1" align="left">        The <i><tt class="parameter">content</tt></i> parameter was added.       </td>      </tr>     </tbody>    </colgroup>   </table>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openssl-pkcs7-sign.html">openssl_pkcs7_sign</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openssl-pkey-export-to-file.html">openssl_pkey_export_to_file</a></div> <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -