File: rnp-key-get-info.xml

package info (click to toggle)
php-doc 20241205~git.dfcbb86%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 70,956 kB
  • sloc: xml: 968,269; php: 23,883; javascript: 671; sh: 177; makefile: 37
file content (211 lines) | stat: -rw-r--r-- 5,806 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?xml version="1.0" encoding="utf-8"?>
<refentry xml:id="function.rnp-key-get-info" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 <refnamediv>
  <refname>rnp_key_get_info</refname>
  <refpurpose>Get information about the key</refpurpose>
 </refnamediv>

 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type class="union"><type>array</type><type>false</type></type><methodname>rnp_key_get_info</methodname>
   <methodparam><type>RnpFFI</type><parameter>ffi</parameter></methodparam>
   <methodparam><type>string</type><parameter>key_fp</parameter></methodparam>
  </methodsynopsis>
  <para>

  </para>

 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  <variablelist>
   <varlistentry>
    <term><parameter>ffi</parameter></term>
    <listitem>
     <para>
      &rnp.parameter.ffi-description;
     </para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><parameter>key_fp</parameter></term>
    <listitem>
     <para>
      Key fingerprint.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   An associative array with information about the key&return.falseforfailure;.
  </para>
  <informaltable>
   <tgroup cols="2">
    <thead>
     <row>
      <entry>Key</entry>
      <entry>Data type</entry>
      <entry>&Description;</entry>
     </row>
    </thead>
    <tbody>
     <row>
      <entry><literal>"is_primary"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is the primary key.
      </entry>
     </row>
     <row>
      <entry><literal>"is_sub"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is a subkey.
      </entry>
     </row>
     <row>
      <entry><literal>"is_valid"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if public key is valid.
       This includes checks of the self-signatures,
       expiration times, revocations and so on.
      </entry>
     </row>
     <row>
      <entry><literal>"is_revoked"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is revoked.
      </entry>
     </row>
     <row>
      <entry><literal>"is_superseded"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is superseded. Present only if the key is revoked.
      </entry>
     </row>
     <row>
      <entry><literal>"is_compromised"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is compromised. Present only if the key is revoked.
      </entry>
     </row>
     <row>
      <entry><literal>"is_retired"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is retired. Present only if the key is revoked.
      </entry>
     </row>
     <row>
      <entry><literal>"is_expired"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is expired.
      </entry>
     </row>
     <row>
      <entry><literal>"have_secret"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key has secret part.
      </entry>
     </row>
     <row>
      <entry><literal>"is_locked"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key is currently locked. Only present for secret keys.
      </entry>
     </row>
     <row>
      <entry><literal>"is_protected"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; 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.
      </entry>
     </row>
     <row>
      <entry><literal>"have_public"</literal></entry>
      <entry>boolean</entry>
      <entry>
       &true; if this key has public part. Generally all keys would have public part.
      </entry>
     </row>
     <row>
      <entry><literal>"valid_till"</literal></entry>
      <entry>integer</entry>
      <entry>
       The timestamp till which key can be considered as valid.
       Note: this will take into account not only key's expiration, but revocations as well.
       For the subkey primary key's validity time will be also checked.
      </entry>
     </row>
     <row>
      <entry><literal>"bits"</literal></entry>
      <entry>integer</entry>
      <entry>
       Number of bits in the key. For EC-based keys it will contain size of the curve.
      </entry>
     </row>
     <row>
      <entry><literal>"alg"</literal></entry>
      <entry>string</entry>
      <entry>
       Key algorithm name.
      </entry>
     </row>
     <row>
      <entry><literal>"subkeys"</literal></entry>
      <entry>array</entry>
      <entry>
       An indexed array containing fingerprint strings of subkeys. Only present for
       primary keys. Could be empty if primary key has no subkeys.
      </entry>
     </row>
     <row>
      <entry><literal>"uids"</literal></entry>
      <entry>array</entry>
      <entry>
       An indexed array containing user ID strings. Only present for
       primary keys. Could be empty if primary key has no user ID-s.
      </entry>
     </row>
    </tbody>
   </tgroup>
  </informaltable>
 </refsect1>


</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->