From 9ec978ed467252b3099d964144581650493996ae Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 29 Sep 2011 03:14:37 +0200 Subject: [PATCH] Initial port to Npth. --- ChangeLog-2011 | 10 ++++++++++ agent/cache.c | 4 +++- agent/gpg-agent.c | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog-2011 b/ChangeLog-2011 index cfba8f473..54681c09d 100644 --- a/ChangeLog-2011 +++ b/ChangeLog-2011 @@ -14,6 +14,16 @@ accept --with-libgpg-error-prefix as well as --with-gpg-error-prefix * m4/gpg-error.m4: Update from git master. +2011-09-26 Marcus Brinkmann + + * configure.ac: Don't check for PTH but for NPTH. + (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. + (have_pth): Rename to ... + (have_npth): ... this. + (USE_GNU_NPTH): Rename to ... + (USE_GNU_PTH): ... this. + * m4/gnupg-npth.m4: New file. + 2011-09-23 Werner Koch * configure.ac: Remove check for gcry_kdf_derive. diff --git a/agent/cache.c b/agent/cache.c index 1c8a42bf9..9b90d93f4 100644 --- a/agent/cache.c +++ b/agent/cache.c @@ -185,7 +185,9 @@ new_data (const char *string, struct secret_data_s **r_data) d_enc->totallen = total; res = npth_mutex_lock (&encryption_lock); if (res) - log_fatal ("failed to acquire cache encryption mutex: %s\n", strerror (res)); + log_fatal ("failed to acquire cache encryption mutex: %s\n", + strerror (res)); + err = gcry_cipher_encrypt (encryption_handle, d_enc->data, total, d->data, total - 8); xfree (d); diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 30ec1d360..53d25402a 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -1778,7 +1778,8 @@ start_connection_thread (void *arg) if (check_nonce (ctrl, &socket_nonce)) { - log_error ("handler 0x%lx nonce check FAILED\n", (unsigned long) npth_self()); + log_error ("handler 0x%lx nonce check FAILED\n", + (unsigned long) npth_self()); return NULL; }