summaryrefslogtreecommitdiff
path: root/doc/librpm/html/group__rpmkeyring.html
blob: f6e32163d4e25e2740a45b093df580779e05fc9c (plain)
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>rpm: RPM keyring API.</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">rpm&#160;<span id="projectnumber">4.9.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#files">Files</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">RPM keyring API.</div>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="files"></a>
Files</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmkeyring_8h.html">rpmkeyring.h</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga95f7a662b881b4e3d218ab51d11fc974">rpmKeyringNew</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new, empty keyring.  <a href="#ga95f7a662b881b4e3d218ab51d11fc974"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga34e86e2a593a3110868620061650b0c5">rpmKeyringFree</a> (<a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> keyring)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Free keyring and the keys within it.  <a href="#ga34e86e2a593a3110868620061650b0c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga3c223ccd18dd223d3020c5557fc866f7">rpmKeyringAddKey</a> (<a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> keyring, <a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a public key to keyring.  <a href="#ga3c223ccd18dd223d3020c5557fc866f7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706">rpmRC</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga0b8a018c21c1f2e7da1baf70f398b260">rpmKeyringLookup</a> (<a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> keyring, <a class="el" href="group__rpmpgp.html#ga86ebfc5fd71a3aa075ddac16b2cba230">pgpDig</a> sig)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform keyring lookup for a key matching a signature.  <a href="#ga0b8a018c21c1f2e7da1baf70f398b260"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga8cd06e7abb87f752baddf13d051a5d6c">rpmKeyringLink</a> (<a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> keyring)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference a keyring.  <a href="#ga8cd06e7abb87f752baddf13d051a5d6c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga87619bcba5702eb234d9de15da7de488">rpmPubkeyNew</a> (const uint8_t *pkt, size_t pktlen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new rpmPubkey from OpenPGP packet.  <a href="#ga87619bcba5702eb234d9de15da7de488"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga0a0e326a6502a3f91dd3e5dee2c38600">rpmPubkeyRead</a> (const char *filename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new rpmPubkey from ASCII-armored pubkey file.  <a href="#ga0a0e326a6502a3f91dd3e5dee2c38600"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#ga96009e0ecc40679a73308b1c9441fbe8">rpmPubkeyFree</a> (<a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Free a pubkey.  <a href="#ga96009e0ecc40679a73308b1c9441fbe8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#gaddea69e6ce6990cfc61d056ddde610ab">rpmPubkeyLink</a> (<a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference a pubkey.  <a href="#gaddea69e6ce6990cfc61d056ddde610ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmpgp.html#ga86ebfc5fd71a3aa075ddac16b2cba230">pgpDig</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#gacc7b0729f094eb5d9ceb5ccb37996ec6">rpmPubkeyDig</a> (<a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse OpenPGP pubkey parameters.  <a href="#gacc7b0729f094eb5d9ceb5ccb37996ec6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmkeyring.html#gad7c1cab57774695a5c383196c1392914">rpmPubkeyBase64</a> (<a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return base64 encoding of pubkey.  <a href="#gad7c1cab57774695a5c383196c1392914"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga3c223ccd18dd223d3020c5557fc866f7"></a><!-- doxytag: member="rpmkeyring.h::rpmKeyringAddKey" ref="ga3c223ccd18dd223d3020c5557fc866f7" args="(rpmKeyring keyring, rpmPubkey key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmKeyringAddKey </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td>
          <td class="paramname"><em>keyring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td>
          <td class="paramname"><em>key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a public key to keyring. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">keyring</td><td>keyring handle </td></tr>
    <tr><td class="paramname">key</td><td>pubkey handle </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 on success, -1 on error, 1 if key already present </dd></dl>

</div>
</div>
<a class="anchor" id="ga34e86e2a593a3110868620061650b0c5"></a><!-- doxytag: member="rpmkeyring.h::rpmKeyringFree" ref="ga34e86e2a593a3110868620061650b0c5" args="(rpmKeyring keyring)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> rpmKeyringFree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td>
          <td class="paramname"><em>keyring</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Free keyring and the keys within it. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>NULL always </dd></dl>

</div>
</div>
<a class="anchor" id="ga8cd06e7abb87f752baddf13d051a5d6c"></a><!-- doxytag: member="rpmkeyring.h::rpmKeyringLink" ref="ga8cd06e7abb87f752baddf13d051a5d6c" args="(rpmKeyring keyring)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> rpmKeyringLink </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td>
          <td class="paramname"><em>keyring</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reference a keyring. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">keyring</td><td>keyring handle </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new keyring reference </dd></dl>

</div>
</div>
<a class="anchor" id="ga0b8a018c21c1f2e7da1baf70f398b260"></a><!-- doxytag: member="rpmkeyring.h::rpmKeyringLookup" ref="ga0b8a018c21c1f2e7da1baf70f398b260" args="(rpmKeyring keyring, pgpDig sig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706">rpmRC</a> rpmKeyringLookup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a>&#160;</td>
          <td class="paramname"><em>keyring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__rpmpgp.html#ga86ebfc5fd71a3aa075ddac16b2cba230">pgpDig</a>&#160;</td>
          <td class="paramname"><em>sig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Perform keyring lookup for a key matching a signature. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">keyring</td><td>keyring handle </td></tr>
    <tr><td class="paramname">sig</td><td>OpenPGP packet container of signature </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>RPMRC_OK if found, RPMRC_NOKEY otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="ga95f7a662b881b4e3d218ab51d11fc974"></a><!-- doxytag: member="rpmkeyring.h::rpmKeyringNew" ref="ga95f7a662b881b4e3d218ab51d11fc974" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#aca17e1e8702595af21a0840859675440">rpmKeyring</a> rpmKeyringNew </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new, empty keyring. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>new keyring handle </dd></dl>

</div>
</div>
<a class="anchor" id="gad7c1cab57774695a5c383196c1392914"></a><!-- doxytag: member="rpmkeyring.h::rpmPubkeyBase64" ref="gad7c1cab57774695a5c383196c1392914" args="(rpmPubkey key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* rpmPubkeyBase64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return base64 encoding of pubkey. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Pubkey </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>base64 encoded pubkey (malloced), NULL on error </dd></dl>

</div>
</div>
<a class="anchor" id="gacc7b0729f094eb5d9ceb5ccb37996ec6"></a><!-- doxytag: member="rpmkeyring.h::rpmPubkeyDig" ref="gacc7b0729f094eb5d9ceb5ccb37996ec6" args="(rpmPubkey key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__rpmpgp.html#ga86ebfc5fd71a3aa075ddac16b2cba230">pgpDig</a> rpmPubkeyDig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parse OpenPGP pubkey parameters. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Pubkey </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>parsed output of pubkey packet parameters </dd></dl>

</div>
</div>
<a class="anchor" id="ga96009e0ecc40679a73308b1c9441fbe8"></a><!-- doxytag: member="rpmkeyring.h::rpmPubkeyFree" ref="ga96009e0ecc40679a73308b1c9441fbe8" args="(rpmPubkey key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> rpmPubkeyFree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Free a pubkey. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Pubkey to free </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>NULL always </dd></dl>

</div>
</div>
<a class="anchor" id="gaddea69e6ce6990cfc61d056ddde610ab"></a><!-- doxytag: member="rpmkeyring.h::rpmPubkeyLink" ref="gaddea69e6ce6990cfc61d056ddde610ab" args="(rpmPubkey key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> rpmPubkeyLink </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a>&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reference a pubkey. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Pubkey </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new pubkey reference </dd></dl>

</div>
</div>
<a class="anchor" id="ga87619bcba5702eb234d9de15da7de488"></a><!-- doxytag: member="rpmkeyring.h::rpmPubkeyNew" ref="ga87619bcba5702eb234d9de15da7de488" args="(const uint8_t *pkt, size_t pktlen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> rpmPubkeyNew </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>pkt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>pktlen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new rpmPubkey from OpenPGP packet. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pkt</td><td>OpenPGP packet data </td></tr>
    <tr><td class="paramname">pktlen</td><td>Data length </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new pubkey handle </dd></dl>

</div>
</div>
<a class="anchor" id="ga0a0e326a6502a3f91dd3e5dee2c38600"></a><!-- doxytag: member="rpmkeyring.h::rpmPubkeyRead" ref="ga0a0e326a6502a3f91dd3e5dee2c38600" args="(const char *filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="rpmtypes_8h.html#a5b63464bc6a0dbe83ef2d3dbbf6d59e6">rpmPubkey</a> rpmPubkeyRead </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new rpmPubkey from ASCII-armored pubkey file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>Path to pubkey file </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>new pubkey handle </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 15 2011 for rpm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>