diff options
author | Casaburi Johannes <johannes.casaburi@students.bfh.ch> | 2024-01-05 15:31:54 +0100 |
---|---|---|
committer | Casaburi Johannes <johannes.casaburi@students.bfh.ch> | 2024-01-05 15:31:54 +0100 |
commit | 94914b0e2e559d38c19c580e96f881eb329bc82d (patch) | |
tree | 4933faf56808ec04730e0fc4bd86f621c0894070 /src/util/crypto_helper_rsa.c | |
parent | dc742246151fa5a0fa3f2150e130d5122008cfae (diff) | |
download | exchange-94914b0e2e559d38c19c580e96f881eb329bc82d.tar.xz |
add option -s to the RSA and EdDSA secmod helper for DONAU to use a different path
Diffstat (limited to 'src/util/crypto_helper_rsa.c')
-rw-r--r-- | src/util/crypto_helper_rsa.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/util/crypto_helper_rsa.c b/src/util/crypto_helper_rsa.c index 58ed5a375..d5b7ccf2f 100644 --- a/src/util/crypto_helper_rsa.c +++ b/src/util/crypto_helper_rsa.c @@ -113,21 +113,28 @@ try_connect (struct TALER_CRYPTO_RsaDenominationHelper *dh) struct TALER_CRYPTO_RsaDenominationHelper * TALER_CRYPTO_helper_rsa_connect ( const struct GNUNET_CONFIGURATION_Handle *cfg, + const char *section, TALER_CRYPTO_RsaDenominationKeyStatusCallback dkc, void *dkc_cls) { struct TALER_CRYPTO_RsaDenominationHelper *dh; char *unixpath; + char *secname; + + GNUNET_asprintf (&secname, + "%s-exchange-secmod-rsa", + section); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, - "taler-exchange-secmod-rsa", + secname, "UNIXPATH", &unixpath)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, - "taler-exchange-secmod-rsa", + secname, "UNIXPATH"); + GNUNET_free (secname); return NULL; } /* we use >= here because we want the sun_path to always @@ -139,8 +146,10 @@ TALER_CRYPTO_helper_rsa_connect ( "UNIXPATH", "path too long"); GNUNET_free (unixpath); + GNUNET_free (secname); return NULL; } + GNUNET_free (secname); dh = GNUNET_new (struct TALER_CRYPTO_RsaDenominationHelper); dh->dkc = dkc; dh->dkc_cls = dkc_cls; |