#include <rpm/rpmtypes.h>
#include <rpm/rpmpgp.h>
Go to the source code of this file.
◆ rpmKeyringAddKey()
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
◆ rpmKeyringFree()
Free keyring and the keys within it.
- Returns
- NULL always
◆ rpmKeyringLink()
Reference a keyring.
- Parameters
-
- Returns
- new keyring reference
◆ rpmKeyringLookup()
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
◆ rpmKeyringNew()
Create a new, empty keyring.
- Returns
- new keyring handle
◆ rpmKeyringUnlink()
Unreference a keyring.
- Parameters
-
- Returns
- NULL always
◆ rpmPubkeyBase64()
Return base64 encoding of pubkey.
- Parameters
-
- Returns
- base64 encoded pubkey (malloced), NULL on error
◆ rpmPubkeyDig()
Parse OpenPGP pubkey parameters.
- Parameters
-
- Returns
- parsed output of pubkey packet parameters
◆ rpmPubkeyFree()
Free a pubkey.
- Parameters
-
- Returns
- NULL always
◆ rpmPubkeyLink()
Reference a pubkey.
- Parameters
-
- Returns
- new pubkey reference
◆ rpmPubkeyNew()
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
◆ rpmPubkeyRead()
rpmPubkey rpmPubkeyRead |
( |
const char * |
filename | ) |
|
Create a new rpmPubkey from ASCII-armored pubkey file.
- Parameters
-
filename | Path to pubkey file |
- Returns
- new pubkey handle
◆ rpmPubkeyUnlink()
Unreference a pubkey.
- Parameters
-
- Returns
- NULL always