diff options
author | Werner Koch <wk@gnupg.org> | 1998-10-17 16:47:14 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-10-17 16:47:14 +0200 |
commit | 1cd8e3a83da8cee1e639093f8371744ec89f653f (patch) | |
tree | c44ca2c4f05b0b859158b75d81f262678bb6ed0d /g10/keydb.h | |
parent | test 2 (diff) | |
download | gnupg2-1cd8e3a83da8cee1e639093f8371744ec89f653f.tar.xz gnupg2-1cd8e3a83da8cee1e639093f8371744ec89f653f.zip |
Removed some trash
Diffstat (limited to 'g10/keydb.h')
-rw-r--r-- | g10/keydb.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h index efb371cec..229e525f6 100644 --- a/g10/keydb.h +++ b/g10/keydb.h @@ -21,6 +21,10 @@ #ifndef G10_KEYDB_H #define G10_KEYDB_H +#ifdef HAVE_LIBGDBM + #include <gdbm.h> +#endif + #include "types.h" #include "packet.h" #include "cipher.h" @@ -44,16 +48,28 @@ struct kbnode_struct { int private_flag; }; + +enum resource_type { + rt_UNKNOWN = 0, + rt_RING = 1, + rt_GDBM = 2 +}; + + /**************** * A data structre to hold information about the external position * of a keyblock. */ struct keyblock_pos_struct { int resno; /* resource number */ + enum resource_type rt; ulong offset; /* position information */ unsigned count; /* length of the keyblock in packets */ IOBUF fp; /* used by enum_keyblocks */ int secret; /* working on a secret keyring */ + #ifdef HAVE_LIBGDBM + GDBM_FILE dbf; + #endif PACKET *pkt; /* ditto */ }; typedef struct keyblock_pos_struct KBPOS; |