1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +02:00
gnupg/kbx
Werner Koch 101ba4f18a
kbx: Fix keyboxd searching with multiple patterns.
* kbx/keybox-search-desc.h (struct keydb_search_desc): New flag
name_used.
* common/userids.c (classify_user_id): Set flag.
* kbx/kbxserver.c (struct search_backing_store_s): New.
(cmd_search): use a backing store for the const pointers.
(kbxd_start_command_handler): Release the backing store.
--

Well, the search object partly uses buffers but also const
pointers (for strings and the serial number).  This when assigning
such objects to an another one we should really take a deep copy and
not just copy the pointer.  The more clean solution would have been to
provide a storage option the search object but that needs checking the
code at too many places so that I decided to use a separate backing
store array here.

Signed-off-by: Werner Koch <wk@gnupg.org>
2021-07-08 13:57:13 +02:00
..
backend-cache.c keyboxd: Extend PUBKEY_INFO status line with an uid ordinal. 2020-09-22 15:42:40 +02:00
backend-kbx.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
backend-sqlite.c keyboxd: Fix searching for exact mail addresses. 2021-04-21 14:40:08 +02:00
backend-support.c keyboxd: Extend PUBKEY_INFO status line with an uid ordinal. 2020-09-22 15:42:40 +02:00
backend.h keyboxd: New command TRANSACTION. 2020-09-24 16:38:21 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
frontend.c keyboxd: New command TRANSACTION. 2020-09-24 16:38:21 +02:00
frontend.h keyboxd: New command TRANSACTION. 2020-09-24 16:38:21 +02:00
kbx-client-util.c kbx: Avoid uninitialized read 2021-05-20 14:45:29 +02:00
kbx-client-util.h keyboxd: Implement multiple search descriptions. 2020-09-24 10:37:42 +02:00
kbxserver.c kbx: Fix keyboxd searching with multiple patterns. 2021-07-08 13:57:13 +02:00
kbxutil.c w32: Replace some fopen by es_fopen. 2020-11-11 15:23:22 +01:00
keybox-blob.c keyboxd: Add basic support for X.509. 2020-09-10 12:50:45 +02:00
keybox-defs.h Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
keybox-dump.c kbx: Avoid uninitialized read 2021-05-20 14:45:29 +02:00
keybox-errors.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
keybox-file.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
keybox-init.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
keybox-openpgp.c kbx: Better error message in case of a crippled Libgcrypt. 2020-12-02 11:14:19 +01:00
keybox-search-desc.h kbx: Fix keyboxd searching with multiple patterns. 2021-07-08 13:57:13 +02:00
keybox-search.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
keybox-update.c kbx: Fix memory leak. 2021-04-13 14:35:04 +09:00
keybox-util.c kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
keybox.h Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
keyboxd-w32info.rc kbx: Add framework for a public key daemon. 2018-09-05 17:00:17 +02:00
keyboxd.c kbx: Avoid uninitialized read 2021-05-20 14:45:29 +02:00
keyboxd.h kbxd: Group the options. 2021-03-22 19:13:07 +01:00
Makefile.am agent,kbx: Add LIBASSUAN_CLFAGS. 2021-04-13 13:54:14 +09:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
mkerrors all: fix more spelling errors 2018-10-25 16:53:05 -04:00