aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox-defs.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-04-01 15:08:57 +0000
committerWerner Koch <[email protected]>2008-04-01 15:08:57 +0000
commit80f77d79c516ca636cfc9382effa5f224f31f0f4 (patch)
treeada520eaf81592573a79719d51bc9a1dda42f0d4 /kbx/keybox-defs.h
parentFix problem when using the fallback dirmngr. (diff)
downloadgnupg-80f77d79c516ca636cfc9382effa5f224f31f0f4.tar.gz
gnupg-80f77d79c516ca636cfc9382effa5f224f31f0f4.zip
Fix a problem with dirmngr looked up certificates.
Typo fixes.
Diffstat (limited to 'kbx/keybox-defs.h')
-rw-r--r--kbx/keybox-defs.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/kbx/keybox-defs.h b/kbx/keybox-defs.h
index c425cdd40..626f3e5c3 100644
--- a/kbx/keybox-defs.h
+++ b/kbx/keybox-defs.h
@@ -53,13 +53,31 @@ typedef struct keyboxblob *KEYBOXBLOB;
typedef struct keybox_name *KB_NAME;
-typedef struct keybox_name const * CONST_KB_NAME;
-struct keybox_name {
- struct keybox_name *next;
+typedef struct keybox_name const *CONST_KB_NAME;
+struct keybox_name
+{
+ /* Link to the next resources, so that we can walk all
+ resources. */
+ KB_NAME next;
+
+ /* True if this is a keybox with secret keys. */
int secret;
+
/*DOTLOCK lockhd;*/
+
+ /* A table with all the handles accessing this resources.
+ HANDLE_TABLE_SIZE gives the allocated length of this table unused
+ entrues are set to NULL. HANDLE_TABLE may be NULL. */
+ KEYBOX_HANDLE *handle_table;
+ size_t handle_table_size;
+
+ /* Not yet used. */
int is_locked;
+
+ /* Not yet used. */
int did_full_scan;
+
+ /* The name of the resource file. */
char fname[1];
};
@@ -129,6 +147,9 @@ typedef struct _keybox_openpgp_info *keybox_openpgp_info_t;
/* int preserve_permissions; */
/* } keybox_opt; */
+/*-- keybox-init.c --*/
+void _keybox_close_file (KEYBOX_HANDLE hd);
+
/*-- keybox-blob.c --*/
#ifdef KEYBOX_WITH_OPENPGP