From c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 1 Oct 2019 20:09:42 +0200 Subject: 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 --- kbx/frontend.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kbx/frontend.h') 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*/ -- cgit v1.2.3