diff options
author | Werner Koch <[email protected]> | 2019-10-01 18:09:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-10-01 18:09:42 +0000 |
commit | c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7 (patch) | |
tree | bbbc1122eda0eda3703efd60129570f13d52fd09 /kbx/backend.h | |
parent | common: New function hex2fixedbuf. (diff) | |
download | gnupg-c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7.tar.gz gnupg-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 <[email protected]>
Diffstat (limited to 'kbx/backend.h')
-rw-r--r-- | kbx/backend.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kbx/backend.h b/kbx/backend.h index 675ec213d..1581ae582 100644 --- a/kbx/backend.h +++ b/kbx/backend.h @@ -106,6 +106,9 @@ gpg_error_t be_find_request_part (backend_handle_t backend_hd, gpg_error_t be_return_pubkey (ctrl_t ctrl, const void *buffer, size_t buflen, enum pubkey_types pubkey_type, const unsigned char *ubid); +gpg_error_t be_fingerprint_from_blob (const void *blob, size_t bloblen, + enum pubkey_types *r_pktype, + char *r_fpr, unsigned int *r_fprlen); /*-- backend-cache.c --*/ @@ -134,7 +137,11 @@ gpg_error_t be_kbx_search (ctrl_t ctrl, backend_handle_t hd, db_request_t request, KEYDB_SEARCH_DESC *desc, unsigned int ndesc); gpg_error_t be_kbx_seek (ctrl_t ctrl, backend_handle_t backend_hd, - db_request_t request, unsigned char *ubid); + db_request_t request, const unsigned char *ubid, + const unsigned char *fpr, unsigned int fprlen); +gpg_error_t be_kbx_insert (ctrl_t ctrl, backend_handle_t backend_hd, + db_request_t request, enum pubkey_types pktype, + const void *blob, size_t bloblen); #endif /*KBX_BACKEND_H*/ |