#include <rpm/rpmtypes.h>
#include <rpm/rpmpgp.h>
Go to the source code of this file.
Return array of subkeys belonging to maikey param mainkey main rpmPubkey param count count of returned subkeys.
- Returns
- an array of subkey's handles
Add a public key to keyring.
- Parameters
-
keyring | keyring handle |
key | pubkey handle |
- Returns
- 0 on success, -1 on error, 1 if key already present
Free keyring and the keys within it.
- Returns
- NULL always
Reference a keyring.
- Parameters
-
- Returns
- new keyring reference
Perform keyring lookup for a key matching a signature.
- Parameters
-
keyring | keyring handle |
sig | OpenPGP packet container of signature |
- Returns
- RPMRC_OK if found, RPMRC_NOKEY otherwise
Create a new, empty keyring.
- Returns
- new keyring handle
Perform combined keyring lookup and signature verification.
- Parameters
-
keyring | keyring handle |
sig | OpenPGP signature parameters |
ctx | signature hash context |
- Returns
- RPMRC_OK / RPMRC_FAIL / RPMRC_NOKEY
Return base64 encoding of pubkey.
- Parameters
-
- Returns
- base64 encoded pubkey (malloced), NULL on error
Parse OpenPGP pubkey parameters.
- Parameters
-
- Returns
- parsed output of pubkey packet parameters
Free a pubkey.
- Parameters
-
- Returns
- NULL always
Reference a pubkey.
- Parameters
-
- Returns
- new pubkey reference
rpmPubkey rpmPubkeyNew |
( |
const uint8_t * |
pkt, |
|
|
size_t |
pktlen |
|
) |
| |
Create a new rpmPubkey from OpenPGP packet.
- Parameters
-
pkt | OpenPGP packet data |
pktlen | Data length |
- Returns
- new pubkey handle
Return pgp params of key.
- Parameters
-
- Returns
- pgp params, NULL on error
rpmPubkey rpmPubkeyRead |
( |
const char * |
filename | ) |
|
Create a new rpmPubkey from ASCII-armored pubkey file.
- Parameters
-
filename | Path to pubkey file |
- Returns
- new pubkey handle