mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
61765136cf
commit
c7293a4d12
8 changed files with 324 additions and 20 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue