summaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-10-17 16:47:14 +0200
committerWerner Koch <wk@gnupg.org>1998-10-17 16:47:14 +0200
commit1cd8e3a83da8cee1e639093f8371744ec89f653f (patch)
treec44ca2c4f05b0b859158b75d81f262678bb6ed0d /g10/keydb.h
parenttest 2 (diff)
downloadgnupg2-1cd8e3a83da8cee1e639093f8371744ec89f653f.tar.xz
gnupg2-1cd8e3a83da8cee1e639093f8371744ec89f653f.zip
Removed some trash
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h16
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;