summaryrefslogtreecommitdiffstats
path: root/kbx/frontend.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-10-01 20:09:42 +0200
committerWerner Koch <wk@gnupg.org>2019-10-01 20:09:42 +0200
commitc7293a4d125c4675c86ecdee0f2f3186fc4bdaf7 (patch)
treebbbc1122eda0eda3703efd60129570f13d52fd09 /kbx/frontend.h
parentcommon: New function hex2fixedbuf. (diff)
downloadgnupg2-c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7.tar.xz
gnupg2-c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7.zip
kbx: Add first version of STORE command to keyboxd.
* kbx/Makefile.am (keyboxd_CFLAGS): -DKEYBOX_WITH_X509. (keyboxd_LDADD): Add libksba. * kbx/kbxserver.c (cmd_store): New. * kbx/frontend.c (kbxd_store): New. * kbx/backend-support.c (is_x509_blob): New. (be_fingerprint_from_blob): New. * kbx/backend-kbx.c (be_kbx_seek): Add args FPR and FPRLEN. (be_kbx_insert): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'kbx/frontend.h')
-rw-r--r--kbx/frontend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kbx/frontend.h b/kbx/frontend.h
index 55d041fb0..7c86514d0 100644
--- a/kbx/frontend.h
+++ b/kbx/frontend.h
@@ -31,6 +31,8 @@ void kbxd_release_session_info (ctrl_t ctrl);
gpg_error_t kbxd_search (ctrl_t ctrl,
KEYDB_SEARCH_DESC *desc, unsigned int ndesc,
int reset);
+gpg_error_t kbxd_store (ctrl_t ctrl, const void *blob, size_t bloblen,
+ int only_update);
#endif /*KBX_FRONTEND_H*/