From ab96483e01698c5d8800b83e8e8541f914551d55 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 14 May 2021 15:47:02 +0200 Subject: [PATCH] disable gettext use in secmod code (#6862) --- src/util/crypto_helper_denom.c | 2 +- src/util/crypto_helper_esign.c | 2 +- src/util/taler-exchange-secmod-eddsa.c | 3 +++ src/util/taler-exchange-secmod-rsa.c | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/util/crypto_helper_denom.c b/src/util/crypto_helper_denom.c index 59fefc276..bd9802d2f 100644 --- a/src/util/crypto_helper_denom.c +++ b/src/util/crypto_helper_denom.c @@ -535,7 +535,7 @@ TALER_CRYPTO_helper_denom_sign ( buf, sizeof (buf), 0, - &dh->sa, + (const struct sockaddr *) &dh->sa, sizeof (dh->sa)); if (ret < 0) { diff --git a/src/util/crypto_helper_esign.c b/src/util/crypto_helper_esign.c index 9392fe402..a1fb9319d 100644 --- a/src/util/crypto_helper_esign.c +++ b/src/util/crypto_helper_esign.c @@ -485,7 +485,7 @@ TALER_CRYPTO_helper_esign_sign_ ( buf, sizeof (buf), 0, - &esh->sa, + (const struct sockaddr *) &esh->sa, sizeof (esh->sa)); if (ret < 0) { diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c index e2a71e6a9..424fab63f 100644 --- a/src/util/taler-exchange-secmod-eddsa.c +++ b/src/util/taler-exchange-secmod-eddsa.c @@ -32,6 +32,9 @@ * private key. This is done by reference counting (as work is always * assigned and collected by the main thread). */ +#include "taler_config.h" +#define HAVE_USED_CONFIG_H +#undef ENABLE_NLS #include "platform.h" #include "taler_util.h" #include "taler-exchange-secmod-eddsa.h" diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c index 0b2da99d7..941a3ddf3 100644 --- a/src/util/taler-exchange-secmod-rsa.c +++ b/src/util/taler-exchange-secmod-rsa.c @@ -32,6 +32,9 @@ * private key. This is done by reference counting (as work is always * assigned and collected by the main thread). */ +#include "taler_config.h" +#define HAVE_USED_CONFIG_H +#undef ENABLE_NLS #include "platform.h" #include "taler_util.h" #include "taler-exchange-secmod-rsa.h"