rpm  5.4.10
Macros | Functions | Variables
rpmku.c File Reference
#include "system.h"
#include <rpmiotypes.h>
#include <rpmio.h>
#include <rpmku.h>
#include "debug.h"
Include dependency graph for rpmku.c:

Go to the source code of this file.

Macros

#define _RPMIOB_INTERNAL
 

Functions

char * _GetPass (const char *prompt)
 
char * _RequestPass (const char *prompt)
 
rpmRC rpmkuFindPubkey (pgpDigParams sigp, rpmiob *iobp)
 Lookup pubkey in keyutils keyring. More...
 
rpmRC rpmkuStorePubkey (pgpDigParams sigp, rpmiob iob)
 Store pubkey in keyutils keyring. More...
 
const char * rpmkuPassPhrase (const char *passPhrase)
 Return pass phrase from keyutils keyring. More...
 

Variables

char *(* Getpass )(const char *prompt) = _GetPass
 Return a password. More...
 

Macro Definition Documentation

§ _RPMIOB_INTERNAL

#define _RPMIOB_INTERNAL

Definition at line 7 of file rpmku.c.

Function Documentation

§ _GetPass()

char* _GetPass ( const char *  prompt)

Definition at line 87 of file rpmku.c.

References _free(), _kuKeyring, and rpmExpand().

§ _RequestPass()

char* _RequestPass ( const char *  prompt)

Definition at line 121 of file rpmku.c.

References argvSplit().

§ rpmkuFindPubkey()

rpmRC rpmkuFindPubkey ( pgpDigParams  sigp,
rpmiob iobp 
)

Lookup pubkey in keyutils keyring.

Parameters
sigpsignature packet
Return values
*iobppubkey I/O buffer
Returns
RPMRC_OK on success

Definition at line 158 of file rpmku.c.

References _kuKeyring, alloca(), pgpGrab(), rpmiobFree(), rpmiobNew(), RPMRC_NOTFOUND, RPMRC_OK, snprintf(), stpcpy(), and xstrdup().

Referenced by rpmtsFindPubkey().

§ rpmkuPassPhrase()

const char* rpmkuPassPhrase ( const char *  passPhrase)

Return pass phrase from keyutils keyring.

Parameters
passPhrasepass phrase
Returns
(malloc'd) pass phrase

Definition at line 228 of file rpmku.c.

References _kuKeyring, and xstrdup().

Referenced by makeGPGSignature(), and rpmCheckPassPhrase().

§ rpmkuStorePubkey()

rpmRC rpmkuStorePubkey ( pgpDigParams  sigp,
rpmiob  iob 
)

Store pubkey in keyutils keyring.

Parameters
sigpsignature packet
iobpubkey I/O buffer
Returns
RPMRC_OK on success

Definition at line 205 of file rpmku.c.

References _kuKeyring, alloca(), pgpGrab(), rpmiobFree(), RPMRC_OK, snprintf(), and stpcpy().

Referenced by rpmtsFindPubkey().

Variable Documentation

§ Getpass

char*(* Getpass) (const char *prompt) = _GetPass

Return a password.

Parameters
promptprompt string
Returns
password

Definition at line 155 of file rpmku.c.

Referenced by main(), and urlFind().