Put blocking calls into Libgpg-error's system call clamp.
authorWerner Koch <wk@gnupg.org>
Sat, 12 Nov 2016 10:34:49 +0000 (11:34 +0100)
committerWerner Koch <wk@gnupg.org>
Sat, 12 Nov 2016 10:34:49 +0000 (11:34 +0100)
commitb829dfe9f0eeff08c956ba3f3a6b559b9d2199dd
tree3a98a91d1e3ea957af9d41b288c5138f9d964c6e
parentbf6d5b10cb4173826f47ac080506b68bb001acb2
Put blocking calls into Libgpg-error's system call clamp.

* src/gcrypt.h.in (GCRYCTL_REINIT_SYSCALL_CLAMP): New.
* configure.ac: Require Libgpg-error 1.25.  Set version number to
1.8.0.
* src/gcrypt-int.h: Remove error code emulation.
* src/global.c (pre_syscall_func, post_syscall_func): New.
(global_init): Call gpgrt_get_syscall_clamp.
(_gcry_vcontrol) <GCRYCTL_REINIT_SYSCALL_CLAMP>: Ditto.
(_gcry_pre_syscall, _gcry_post_syscall): New.
* random/rndlinux.c (_gcry_rndlinux_gather_random): Use the new
functions.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
configure.ac
doc/gcrypt.texi
random/rndlinux.c
src/g10lib.h
src/gcrypt-int.h
src/gcrypt.h.in
src/global.c