mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
gpg: Remove unused definitions.
* g10/keydb.h (rt_UNKNOWN, rt_RING): Remove constants. (keyblock_pos_struct, KBPOS): Remove struct and type. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
79cea89774
commit
701f54eccf
24
g10/keydb.h
24
g10/keydb.h
@ -61,12 +61,6 @@ struct kbnode_struct {
|
|||||||
#define is_cloned_kbnode(a) ((a)->private_flag & 2)
|
#define is_cloned_kbnode(a) ((a)->private_flag & 2)
|
||||||
|
|
||||||
|
|
||||||
enum resource_type {
|
|
||||||
rt_UNKNOWN = 0,
|
|
||||||
rt_RING = 1
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/* Bit flags used with build_pk_list. */
|
/* Bit flags used with build_pk_list. */
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
@ -75,28 +69,14 @@ enum
|
|||||||
PK_LIST_CONFIG = 4, /* Specified via config file. */
|
PK_LIST_CONFIG = 4, /* Specified via config file. */
|
||||||
PK_LIST_FROM_FILE = 8 /* Take key from file with that name. */
|
PK_LIST_FROM_FILE = 8 /* Take key from file with that name. */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* To store private data in the flags the private data must be left
|
/* To store private data in the flags the private data must be left
|
||||||
shifted by this value. */
|
* shifted by this value. */
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PK_LIST_SHIFT = 4
|
PK_LIST_SHIFT = 4
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************
|
|
||||||
* A data structure to hold information about the external position
|
|
||||||
* of a keyblock.
|
|
||||||
*/
|
|
||||||
struct keyblock_pos_struct {
|
|
||||||
int resno; /* resource number */
|
|
||||||
enum resource_type rt;
|
|
||||||
off_t offset; /* position information */
|
|
||||||
unsigned count; /* length of the keyblock in packets */
|
|
||||||
iobuf_t fp; /* Used by enum_keyblocks. */
|
|
||||||
int secret; /* working on a secret keyring */
|
|
||||||
PACKET *pkt; /* ditto */
|
|
||||||
int valid;
|
|
||||||
};
|
|
||||||
typedef struct keyblock_pos_struct KBPOS;
|
|
||||||
|
|
||||||
/* Structure to hold a couple of public key certificates. */
|
/* Structure to hold a couple of public key certificates. */
|
||||||
typedef struct pk_list *PK_LIST; /* Deprecated. */
|
typedef struct pk_list *PK_LIST; /* Deprecated. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user