<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.rnp-key-get-info.php',
    1 => 'rnp_key_get_info',
    2 => 'Get information about the key',
  ),
  'up' => 
  array (
    0 => 'ref.rnp.php',
    1 => 'Rnp İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.rnp-key-export-revocation.php',
    1 => 'rnp_key_export_revocation',
  ),
  'next' => 
  array (
    0 => 'function.rnp-key-remove.php',
    1 => 'rnp_key_remove',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rnp/functions/rnp-key-get-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rnp-key-get-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rnp_key_get_info</h1>
  <p class="verinfo">(PECL rnp &gt;= 0.1.1)</p><p class="refpurpose"><span class="refname">rnp_key_get_info</span> &mdash; <span class="dc-title">Get information about the key</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rnp-key-get-info-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rnp_key_get_info</strong></span>(<span class="methodparam"><span class="type"><a href="class.rnpffi.php" class="type RnpFFI">RnpFFI</a></span> <code class="parameter">$ffi</code></span>, <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>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">

  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.rnp-key-get-info-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">ffi</code></dt>
    <dd>
     <span class="simpara">
      rnp_ffi_create tarafından döndürülen FFI nesnesi.
     </span>
    </dd>
   
   
    <dt><code class="parameter">key_fp</code></dt>
    <dd>
     <span class="simpara">
      Key fingerprint.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rnp-key-get-info-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   An associative array with information about the key başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Key</th>
      <th>Data type</th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><code class="literal">&quot;is_primary&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is the primary key.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_sub&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is a subkey.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_valid&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if public key is valid.
       This includes checks of the self-signatures,
       expiration times, revocations and so on.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_revoked&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is revoked.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_superseded&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is superseded. Present only if the key is revoked.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_compromised&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is compromised. Present only if the key is revoked.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_retired&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is retired. Present only if the key is revoked.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_expired&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is expired.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;have_secret&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key has secret part.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_locked&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is currently locked. Only present for secret keys.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;is_protected&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key is protected. Only present for secret keys.
       A protected key is one that is encrypted and can be safely held in memory
       and locked/unlocked as needed.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;have_public&quot;</code></td>
      <td>boolean</td>
      <td>
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this key has public part. Generally all keys would have public part.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;valid_till&quot;</code></td>
      <td>integer</td>
      <td>
       The timestamp till which key can be considered as valid.
       Note: this will take into account not only key&#039;s expiration, but revocations as well.
       For the subkey primary key&#039;s validity time will be also checked.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;bits&quot;</code></td>
      <td>integer</td>
      <td>
       Number of bits in the key. For EC-based keys it will contain size of the curve.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;alg&quot;</code></td>
      <td>string</td>
      <td>
       Key algorithm name.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;subkeys&quot;</code></td>
      <td>array</td>
      <td>
       An indexed array containing fingerprint strings of subkeys. Only present for
       primary keys. Could be empty if primary key has no subkeys.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;uids&quot;</code></td>
      <td>array</td>
      <td>
       An indexed array containing user ID strings. Only present for
       primary keys. Could be empty if primary key has no user ID-s.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>



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