<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.rnp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.rnp-key-export-revocation.php',
    1 => 'rnp_key_export_revocation',
    2 => 'Generate and export primary key revocation signature',
  ),
  'up' => 
  array (
    0 => 'ref.rnp.php',
    1 => 'Rnp 函数',
  ),
  'prev' => 
  array (
    0 => 'function.rnp-key-export-autocrypt.php',
    1 => 'rnp_key_export_autocrypt',
  ),
  'next' => 
  array (
    0 => 'function.rnp-key-get-info.php',
    1 => 'rnp_key_get_info',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rnp/functions/rnp-key-export-revocation.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rnp-key-export-revocation" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rnp_key_export_revocation</h1>
  <p class="verinfo">(PECL rnp &gt;= 0.1.1)</p><p class="refpurpose"><span class="refname">rnp_key_export_revocation</span> &mdash; <span class="dc-title">Generate and export primary key revocation signature</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rnp-key-export-revocation-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rnp_key_export_revocation</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="class.rnpffi.php" class="type RnpFFI">RnpFFI</a></span> <code class="parameter">$ffi</code></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">$key_fp</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"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code><span class="initializer"> = ?</span></span><br>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   Note: to revoke a key you&#039;ll need to import this signature into the keystore or use
   <span class="function"><a href="function.rnp-key-revoke.php" class="function">rnp_key_revoke()</a></span> function.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.rnp-key-export-revocation-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">ffi</code></dt>
    <dd>
     <span class="simpara">
      The FFI object returned by <span class="function"><a href="function.rnp-ffi-create.php" class="function">rnp_ffi_create()</a></span>.
     </span>
    </dd>
   
   
    <dt><code class="parameter">key_fp</code></dt>
    <dd>
     <span class="simpara">
      Key fingerprint of the primary key to be revoked.
     </span>
    </dd>
   
   
    <dt><code class="parameter">flags</code></dt>
    <dd>
     <span class="simpara">
      <strong><code><a href="rnp.constants.php#constant.rnp-key-export-armored">RNP_KEY_EXPORT_ARMORED</a></code></strong> or 0.
     </span>
    </dd>
   
   
    <dt><code class="parameter">options</code></dt>
    <dd>
     <span class="simpara">
      An associative array with options.
     </span>
     <table class="doctable informaltable">
      
       <thead>
        <tr>
         <th>Key</th>
         <th>Data type</th>
         <th>说明</th>
        </tr>

       </thead>

       <tbody class="tbody">
        <tr>
         <td><code class="literal">&quot;hash&quot;</code></td>
         <td>string</td>
         <td>Set hash algorithm used during signature calculation.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;code&quot;</code></td>
         <td>string</td>
         <td>Code reason for revocation code. Possible values: &#039;no&#039;, &#039;superseded&#039;, &#039;compromised&#039;,
          &#039;retired&#039;. If not defined, then value &#039;no&#039; will be used by default.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;reason&quot;</code></td>
         <td>string</td>
         <td>Textual representation of the reason for revocation.</td>
        </tr>

       </tbody>
      
     </table>

    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rnp-key-export-revocation-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Exported revocation signature on success 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>



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