diff options
Diffstat (limited to 'src/util/taler-helper-crypto-rsa.c')
-rw-r--r-- | src/util/taler-helper-crypto-rsa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/taler-helper-crypto-rsa.c b/src/util/taler-helper-crypto-rsa.c index af9c76ef2..140a0a8fc 100644 --- a/src/util/taler-helper-crypto-rsa.c +++ b/src/util/taler-helper-crypto-rsa.c @@ -252,6 +252,11 @@ static int global_ret; static struct TALER_SecurityModulePrivateKeyP smpriv; /** + * Public key of this security module. + */ +static struct TALER_SecurityModulePublicKeyP smpub; + +/** * Number of worker threads to use. Default (0) is to use one per CPU core * available. * Length of the #workers array. @@ -735,6 +740,7 @@ notify_client_dk_add (struct Client *client, GNUNET_CRYPTO_eddsa_sign (&smpriv.eddsa_priv, &dka, &an->secm_sig.eddsa_signature); + an->secm_pub = smpub; p = (void *) &an[1]; memcpy (p, buf, @@ -1793,6 +1799,8 @@ run (void *cls, return; } GNUNET_free (pfn); + GNUNET_CRYPTO_eddsa_key_get_public (&smpriv.eddsa_priv, + &smpub.eddsa_pub); } if (GNUNET_OK != |