gnupg/kbx
Werner Koch 9a94db1f66
keyboxd: Implement lookup by short and long keyid.
* kbx/backend-sqlite.c: Change definition of column KID.
(kid_from_mem): Remove.
(kid_from_u32): Rewrite.
(run_sql_bind_int64): Remove.
(run_select_statement): Implement lookup by short keyid.  Fix lookup
by long keyid.
(store_into_fingerprint): Adjust kid arg.
--

The original idea of using an INTEGER, which has the required 64 bits,
didn't worked out due to problems with signed/unsigned mismatch and
the required truncation in a short keyid lookup.  Thus we change the
definition to a blob.

For a database currently in use the change can be done by hand:

  alter table fingerprint rename column kid to deletedkid;
  alter table fingerprint add column kid not null
        default X'0000000000000000';

  update fingerprint set kid = substr (fpr, 13);

The update does only work with 20 octet fingerprints; that is not with
the new v5 OpenPGP keys.  Note that sqlite does not allow to drip a
column, thus we rename it.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-09-11 12:10:05 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am keyboxd: Restructure client access code. 2020-09-02 15:16:29 +02:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
backend-cache.c keyboxd: Add ephemeral and revoked flag to the sqlite backend. 2020-09-11 12:10:05 +02:00
backend-kbx.c keyboxd: Add ephemeral and revoked flag to the sqlite backend. 2020-09-11 12:10:05 +02:00
backend-sqlite.c keyboxd: Implement lookup by short and long keyid. 2020-09-11 12:10:05 +02:00
backend-support.c keyboxd: Add ephemeral and revoked flag to the sqlite backend. 2020-09-11 12:10:05 +02:00
backend.h keyboxd: Add ephemeral and revoked flag to the sqlite backend. 2020-09-11 12:10:05 +02:00
frontend.c keyboxd: Add options --openpgp and --x509 to SEARCH. 2020-09-10 12:08:48 +02:00
frontend.h kbx: Initial support for an SQLite backend 2020-01-02 14:21:12 +01:00
kbx-client-util.c keyboxd: Use D-lines instead of a separate thread. 2020-09-10 12:14:02 +02:00
kbx-client-util.h keyboxd: Use D-lines instead of a separate thread. 2020-09-10 12:14:02 +02:00
kbxserver.c keyboxd: Add options --openpgp and --x509 to SEARCH. 2020-09-10 12:08:48 +02:00
kbxutil.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
keybox-blob.c keyboxd: Add basic support for X.509. 2020-09-10 12:50:45 +02:00
keybox-defs.h keyboxd: Add basic support for X.509. 2020-09-10 12:50:45 +02:00
keybox-dump.c kbx: Redefine the UBID which is now the primary fingerprint. 2019-11-28 11:16:13 +01:00
keybox-errors.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
keybox-file.c kbx: Allow writing using a estream. 2019-08-06 15:01:21 +02:00
keybox-init.c kbx: Fix deadlock in gpgsm on Windows due to a sharing violation. 2019-05-14 19:05:58 +02:00
keybox-openpgp.c kbx: Add first version of STORE command to keyboxd. 2019-10-01 20:09:42 +02:00
keybox-search-desc.h kbx: Change X.509 S/N search definition. 2020-09-09 20:34:59 +02:00
keybox-search.c kbx: Change X.509 S/N search definition. 2020-09-09 20:34:59 +02:00
keybox-update.c Merge branch 'switch-to-gpgk' into master 2019-09-27 15:44:23 +02:00
keybox-util.c kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
keybox.h kbx: Redefine the UBID which is now the primary fingerprint. 2019-11-28 11:16:13 +01:00
keyboxd-w32info.rc kbx: Add framework for a public key daemon. 2018-09-05 17:00:17 +02:00
keyboxd.c gpgconf: Further simplify the gpgconf option processing. 2020-03-14 19:12:41 +01:00
keyboxd.h keyboxd: Add options --openpgp and --x509 to SEARCH. 2020-09-10 12:08:48 +02:00
mkerrors all: fix more spelling errors 2018-10-25 16:53:05 -04:00