summaryrefslogtreecommitdiffstats
path: root/g10/kbx.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2000-05-25 18:28:04 +0200
committerWerner Koch <wk@gnupg.org>2000-05-25 18:28:04 +0200
commitd1648b4d7a2e045bc8ee81f666627d6a792564d6 (patch)
treeda4ff62971292b007ac855b9bb9f096177ac0f6d /g10/kbx.h
parentSee ChangeLog: Fri Mar 24 11:25:45 CET 2000 Werner Koch (diff)
downloadgnupg2-d1648b4d7a2e045bc8ee81f666627d6a792564d6.tar.xz
gnupg2-d1648b4d7a2e045bc8ee81f666627d6a792564d6.zip
See ChangeLog: Thu May 25 18:39:11 CEST 2000 Werner Koch
Diffstat (limited to 'g10/kbx.h')
-rw-r--r--g10/kbx.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/g10/kbx.h b/g10/kbx.h
index 6508d3eab..25825a4ec 100644
--- a/g10/kbx.h
+++ b/g10/kbx.h
@@ -23,10 +23,29 @@
#include "keydb.h"
+/*-- kbxblob.c */
+struct kbxblob;
typedef struct kbxblob *KBXBLOB;
-int kbx_create_blob ( KBXBLOB *retkbx, KBNODE keyblock );
+int kbx_new_blob ( KBXBLOB *r_blob, char *image, size_t imagelen );
+int kbx_create_blob ( KBXBLOB *r_blob, KBNODE keyblock );
void kbx_release_blob ( KBXBLOB blob );
+const char *kbx_get_blob_image ( KBXBLOB blob, size_t *n );
+
+int kbx_dump_blob ( FILE *fp, KBXBLOB blob );
+int kbx_blob_has_fpr ( KBXBLOB blob, const byte *fpr );
+int kbx_blob_has_kid ( KBXBLOB blob, const byte *keyidbuf, size_t keyidlen );
+int kbx_blob_has_uid ( KBXBLOB blob,
+ int (*cmp)(const byte *, size_t, void *), void *opaque );
+
+/*-- kbxio.c --*/
+int kbx_read_blob ( KBXBLOB *r_blob, FILE *a );
+
+/*-- kbxfile.c --*/
+int kbxfile_search_by_fpr( const char *filename, const byte *fpr );
+int kbxfile_search_by_kid ( const char *filename, u32 *kid, int mode );
+int kbxfile_search_by_uid ( const char *filename, const char *name );
+void print_kbxfile( const char *filename );
#endif /*GPG_KBX_H*/