summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-11-12 11:34:49 +0100
committerWerner Koch <wk@gnupg.org>2016-11-12 11:34:49 +0100
commitb829dfe9f0eeff08c956ba3f3a6b559b9d2199dd (patch)
tree3a98a91d1e3ea957af9d41b288c5138f9d964c6e /src/g10lib.h
parentbf6d5b10cb4173826f47ac080506b68bb001acb2 (diff)
downloadlibgcrypt-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 'src/g10lib.h')
-rw-r--r--src/g10lib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/g10lib.h b/src/g10lib.h
index 444c8685..d4e3fefd 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -93,7 +93,9 @@
/*-- src/global.c -*/
int _gcry_global_is_operational (void);
gcry_err_code_t _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr);
-void _gcry_check_heap (const void *a);
+void _gcry_check_heap (const void *a);
+void _gcry_pre_syscall (void);
+void _gcry_post_syscall (void);
int _gcry_get_debug_flag (unsigned int mask);
/* Malloc functions and common wrapper macros. */