aboutsummaryrefslogtreecommitdiffstats
path: root/common/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/init.c')
-rw-r--r--common/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/init.c b/common/init.c
index 91ee912bb..1cbd709d7 100644
--- a/common/init.c
+++ b/common/init.c
@@ -173,7 +173,11 @@ _init_common_subsystems (gpg_err_source_t errsource, int *argcp, char ***argvp)
#endif
/* Initialize the Estream library. */
- es_init ();
+ gpgrt_init ();
+ gpgrt_set_alloc_func (gcry_realloc);
+#ifdef USE_NPTH
+ gpgrt_set_syscall_clamp (npth_unprotect, npth_protect);
+#endif
/* Special hack for Windows CE: We extract some options from arg
to setup the standard handles. */
@@ -191,7 +195,7 @@ _init_common_subsystems (gpg_err_source_t errsource, int *argcp, char ***argvp)
{
int i;
for (i=0; i < 3; i++)
- (void)_es_get_std_stream (i);
+ (void)_gpgrt_get_std_stream (i);
}
/* --version et al shall use estream as well. */