gnupg/kbx
Werner Koch f3ba66781a
kbx: Simplify by removing custom memory functions.
* kbx/keybox-util.c (keybox_set_malloc_hooks): Remove.
(_keybox_malloc, _keybox_calloc, keybox_realloc)
(_keybox_free): Remove.
(keybox_file_rename): Remove.  Was not used.
* sm/gpgsm.c (main): Remove call to keybox_set_malloc_hooks.
* kbx/kbxutil.c (main): Ditto.
* kbx/keybox-defs.h: Remove all separate includes.  Include util.h.
remove convenience macros.
* common/logging.h (return_if_fail): New.  Originally from
keybox-defs.h but now using log_debug.
(return_null_if_fail): Ditto.
(return_val_if_fail): Ditto.
(never_reached): Ditto.
--

Originally the KBX code was written to allow standalone use.  However
this required lot of ugliness like separate memory allocators and
such.  It also precludes the use of some standard functions from
common due to their use of the common gnupg malloc functions.
Dropping all that makes things easier.  Minor disadvantages: the kbx
call done for gpg will now use gcry malloc fucntions and not the
standard malloc functions.  This might be a bit slower but removing
them even fixes a possible bug in keybox_tmp_names which is used in
gpg and uses gpg's xfree which is actually gcry_free.

Signed-off-by: Werner Koch <wk@gnupg.org>
2017-12-22 12:55:46 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
kbxutil.c kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
keybox-blob.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
keybox-defs.h kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
keybox-dump.c kbx: Unify blob reading functions. 2017-04-01 11:10:47 +02:00
keybox-errors.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox-file.c kbx: Unify blob reading functions. 2017-04-01 11:10:47 +02:00
keybox-init.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
keybox-openpgp.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
keybox-search-desc.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
keybox-search.c kbx: Unify blob reading functions. 2017-04-01 11:10:47 +02:00
keybox-update.c kbx: Unify blob reading functions. 2017-04-01 11:10:47 +02:00
keybox-util.c kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
keybox.h kbx: Simplify by removing custom memory functions. 2017-12-22 12:55:46 +01:00
mkerrors Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00