<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.rnp-key-export-revocation.php',
    1 => 'rnp_key_export_revocation',
    2 => 'G&eacute;n&egrave;re et exporte une signature de r&eacute;vocation de cl&eacute; primaire',
  ),
  'up' => 
  array (
    0 => 'ref.rnp.php',
    1 => 'Fonctions de 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' => 'fr',
    '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">Génère et exporte une signature de révocation de clé primaire</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rnp-key-export-revocation-description">
  <h3 class="title">Description</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">
   Notes: pour révoquer une clé, il faudra importer cette signature dans le trousseau de clés ou utiliser
   la fonction <span class="function"><a href="function.rnp-key-revoke.php" class="function">rnp_key_revoke()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.rnp-key-export-revocation-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">ffi</code></dt>
    <dd>
     <span class="simpara">
      L&#039;objet FFI retourné par <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">
      L&#039;empreinte de la clé primaire à révoquer.
     </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> ou 0.
     </span>
    </dd>
   
   
    <dt><code class="parameter">options</code></dt>
    <dd>
     <span class="simpara">
      Un tableau associatif avec des options.
     </span>
     <table class="doctable informaltable">
      
       <thead>
        <tr>
         <th>Key</th>
         <th>Type de donnée</th>
         <th>Description</th>
        </tr>

       </thead>

       <tbody class="tbody">
        <tr>
         <td><code class="literal">&quot;hash&quot;</code></td>
         <td>string</td>
         <td>Définit l&#039;algorithme de hachage utilisé lors du calcul de la signature.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;code&quot;</code></td>
         <td>string</td>
         <td>Code de raison de la révocation. Valeurs possibles : &#039;no&#039;, &#039;superseded&#039;, &#039;compromised&#039;,
          &#039;retired&#039;. Si non défini, la valeur &#039;no&#039; sera utilisée par défaut.</td>
        </tr>

        <tr>
         <td><code class="literal">&quot;reason&quot;</code></td>
         <td>string</td>
         <td>Représentation textuelle de la raison de la révocation.</td>
        </tr>

       </tbody>
      
     </table>

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


 <div class="refsect1 returnvalues" id="refsect1-function.rnp-key-export-revocation-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Révocation exportée en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>



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