mirror of
git://git.gnupg.org/gnupg.git
synced 2024-09-21 15:01:41 +02:00
9a94db1f66
* 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> |
||
---|---|---|
.. | ||
backend-cache.c | ||
backend-kbx.c | ||
backend-sqlite.c | ||
backend-support.c | ||
backend.h | ||
ChangeLog-2011 | ||
frontend.c | ||
frontend.h | ||
kbx-client-util.c | ||
kbx-client-util.h | ||
kbxserver.c | ||
kbxutil.c | ||
keybox-blob.c | ||
keybox-defs.h | ||
keybox-dump.c | ||
keybox-errors.c | ||
keybox-file.c | ||
keybox-init.c | ||
keybox-openpgp.c | ||
keybox-search-desc.h | ||
keybox-search.c | ||
keybox-update.c | ||
keybox-util.c | ||
keybox.h | ||
keyboxd-w32info.rc | ||
keyboxd.c | ||
keyboxd.h | ||
Makefile.am | ||
Manifest | ||
mkerrors |