diff options
author | Werner Koch <wk@gnupg.org> | 2016-11-12 11:34:49 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-11-12 11:34:49 +0100 |
commit | b829dfe9f0eeff08c956ba3f3a6b559b9d2199dd (patch) | |
tree | 3a98a91d1e3ea957af9d41b288c5138f9d964c6e /NEWS | |
parent | bf6d5b10cb4173826f47ac080506b68bb001acb2 (diff) | |
download | libgcrypt-b829dfe9f0eeff08c956ba3f3a6b559b9d2199dd.tar.gz |
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>
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,6 +1,24 @@ -Noteworthy changes in version 1.7.4 (unreleased) [C21/A1/R_] +Noteworthy changes in version 1.8.0 (unreleased) [C21/A1/R_] ------------------------------------------------ + * New interfaces: + + - GCRYCTL_REINIT_SYSCALL_CLAMP allows to init nPth after Libgcrypt. + + * Internal changes: + + - Libgpg-error 1.25 is now required. This avoids stalling of nPth + threads due to contention on internal Libgcrypt locks (e.g. the + random pool lock). + + - The system call clamp of libgpg-error is now used to wrap the + blocking read of /dev/random. This allows other nPth threads to + run while Libgcrypt is gathering entropy. + + + * Interface changes relative to the 1.6.0 release: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + GCRYCTL_REINIT_SYSCALL_CLAMP NEW macro. Noteworthy changes in version 1.7.3 (2016-08-17) [C21/A1/R3] ------------------------------------------------ |