gpgme/src
Ben Kibbey aea2c168fc Add gpgme_set_global_malloc_hooks().
* configure.ac: Remove check for vasprintf().
* doc/gpgme.texi: Add documentation.
* src/gpgme.h.in (gpgme_malloc_hooks,gpgme_malloc_hooks_t): New.
* src/gpgme.h.in (gpgme_set_global_malloc_hooks): New prototype.
* src/mem.c, src/mem.h: New.
* src/gpgme.c (gpgme_set_global_malloc_hooks): New.
* src/gpgme.def, src/libgpgme.vers: Add gpgme_set_global_malloc_hooks.
* src/vasprintf.c (vasprintf): Rename to _gpgme_vasprintf().
* src/vasprintf.c (asprintf): Rename to _gpgme_asprintf().
* src/Makefile.am: Add mem.c, mem.h and vasprintf.c to main_sources.
* src/assuan-support.c, src/ath-pthread.c, src/conversion.c,
src/data-compat.c, src/data-identify.c, src/data-mem.c, src/data.c,
src/debug.c, src/decrypt.c, src/dirinfo.c, src/encrypt.c,
src/engine-assuan.c, src/engine-g13.c, src/engine-gpg.c,
src/engine-gpgconf.c, src/engine-gpgsm.c, src/engine-spawn.c,
src/engine-uiserver.c, src/engine.c, src/export.c, src/genkey.c,
src/get-env.c, src/gpgme-w32spawn.c, src/gpgme.c, src/import.c,
src/key.c, src/keylist.c, src/op-support.c, src/passphrase.c,
src/posix-io.c, src/posix-util.c, src/progress.c, src/setenv.c,
src/sig-notation.c, src/sign.c, src/signers.c, src/trust-item.c,
src/trustlist.c, src/util.h, src/verify.c, src/version.c,
src/vfs-create.c, src/vfs-mount.c, src/w32-ce.c, src/w32-ce.h,
src/w32-glib-io.c, src/w32-io.c, src/w32-sema.c, src/w32-util.c,
src/wait-global.c, src/wait.c:
Change allocation functions: free() to _gpgme_free(), malloc() to
_gpgme_malloc(), calloc() to _gpgme_calloc(), realloc() to
_gpgme_realloc() and strdup() to _gpgme_strdup().

--
Mostly borrowed from libassuan for custom memory handling. This changes
vasprintf.c to implement _gpgme_asprintf() and _gpgme_vasprintf() and
will always use the built-in vasprintf() even when provided by the OS.
2014-10-15 21:34:10 -04:00
..
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
assuan-support.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
ath-pthread.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
ath.c Make definition of off_t robust against misbehaving w32 toolchains. 2013-05-16 17:48:50 +02:00
ath.h Make definition of off_t robust against misbehaving w32 toolchains. 2013-05-16 17:48:50 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-02 11:36:37 +01:00
context.h Add public function gpgme_set_pinentry_mode. 2013-02-07 20:59:16 +01:00
conversion.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
data-compat.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
data-fd.c Make definition of off_t robust against misbehaving w32 toolchains. 2013-05-16 17:48:50 +02:00
data-identify.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
data-mem.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
data-stream.c Make definition of off_t robust against misbehaving w32 toolchains. 2013-05-16 17:48:50 +02:00
data-user.c Make definition of off_t robust against misbehaving w32 toolchains. 2013-05-16 17:48:50 +02:00
data.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
data.h Make definition of off_t robust against misbehaving w32 toolchains. 2013-05-16 17:48:50 +02:00
debug.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
debug.h Trace the use of GPG_ERR_INV_ENGINE. 2012-10-19 11:23:39 +02:00
decrypt-verify.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
decrypt.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
delete.c Trace the use of GPG_ERR_INV_ENGINE. 2012-10-19 11:23:39 +02:00
dirinfo.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
edit.c Fix possible segv in the gpgme_op_card_edit. 2013-08-19 20:40:10 +02:00
encrypt-sign.c Allow symmetric encryption with gpgme_op_encrypt_sign. 2013-05-22 16:31:51 +02:00
encrypt.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-assuan.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-backend.h Actually implement flags for gpgme_op_spawn. 2014-04-10 14:17:19 +02:00
engine-g13.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-gpg.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-gpgconf.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-gpgsm.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-spawn.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine-uiserver.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
engine.h Actually implement flags for gpgme_op_spawn. 2014-04-10 14:17:19 +02:00
error.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
export.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
funopen.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
genkey.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
get-env.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
getauditlog.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
gpgconf.c Make gpgconf engine work again - fixes 02ba35c1. 2014-01-07 17:59:59 +01:00
gpgme-config.in Remove unused pth stuff from gpgme-config. 2012-05-02 10:43:22 +02:00
gpgme-tool.c gpgme-tool: Print fingerprint and keyid with keyservers. 2014-08-12 18:50:14 +02:00
gpgme-w32spawn.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
gpgme.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
gpgme.def Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
gpgme.h.in Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
gpgme.m4 build: Implement SYSROOT feature. 2014-10-02 15:57:50 +02:00
import.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
isascii.c 008-11-03 Marcus Brinkmann <marcus@g10code.com> 2008-11-03 17:24:09 +00:00
kdpipeiodevice.cpp 008-11-03 Marcus Brinkmann <marcus@g10code.com> 2008-11-03 17:24:09 +00:00
kdpipeiodevice.h 008-11-03 Marcus Brinkmann <marcus@g10code.com> 2008-11-03 17:24:09 +00:00
kdpipeiodevice.moc 008-11-03 Marcus Brinkmann <marcus@g10code.com> 2008-11-03 17:24:09 +00:00
key.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
keylist.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
libgpgme.vers Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
Makefile.am Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
mem.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
mem.h Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
moc_kdpipeiodevice.cpp 008-11-03 Marcus Brinkmann <marcus@g10code.com> 2008-11-03 17:24:09 +00:00
op-support.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
opassuan.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
ops.h Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
parsetlv.c Add function gpgme_data_identify. 2013-08-09 19:19:26 +02:00
parsetlv.h Add function gpgme_data_identify. 2013-08-09 19:19:26 +02:00
passphrase.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
passwd.c Trace the use of GPG_ERR_INV_ENGINE. 2012-10-19 11:23:39 +02:00
posix-io.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
posix-sema.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
posix-util.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
priv-io.h w32: Get IOSPAWN flag back in sync with spawn helper. 2014-06-26 10:42:56 +02:00
progress.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
putc_unlocked.c Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
sema.h Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00
setenv.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
sig-notation.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
sign.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
signers.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
spawn.c Actually implement flags for gpgme_op_spawn. 2014-04-10 14:17:19 +02:00
status-table.c Add 6 new GPGME_STATUS_ codes. 2014-05-13 16:08:01 +02:00
stpcpy.c 008-11-03 Marcus Brinkmann <marcus@g10code.com> 2008-11-03 17:24:09 +00:00
sys-util.h Add global flags disable-gpgconf, gpgconf-name, and gpg-name. 2014-01-06 17:16:52 +01:00
trust-item.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
trustlist.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
ttyname_r.c Fix ttyname problem on Android. 2012-10-24 16:44:34 +02:00
util.h Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
vasprintf.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
verify.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
version.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
versioninfo.rc.in Change the various version numbers to the new scheme. 2013-02-26 17:10:18 +01:00
vfs-create.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
vfs-mount.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
w32-ce.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
w32-ce.h Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
w32-glib-io.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
w32-io.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
w32-qt-io.cpp Make use of internal iospawn flags more flexible. 2014-04-10 11:39:14 +02:00
w32-sema.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
w32-util.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
wait-global.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
wait-private.c Use gpg_error_from_syserror instead of directly accessing errno. 2013-02-06 17:35:40 +01:00
wait-user.c Trace the use of GPG_ERR_INV_ENGINE. 2012-10-19 11:23:39 +02:00
wait.c Add gpgme_set_global_malloc_hooks(). 2014-10-15 21:34:10 -04:00
wait.h Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00