diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-27 14:55:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-27 14:55:05 +0100 |
commit | bda9e3ad94b4ede04ed3886dd8097b35a868eef5 (patch) | |
tree | a06a801b9c8f0c1fb61ea595d9633d61e93bbf99 /src/mint/taler-mint-keyup.c | |
parent | 986a89ea4f166567ad2890009d43fd0042bdf142 (diff) | |
download | exchange-bda9e3ad94b4ede04ed3886dd8097b35a868eef5.tar.xz |
towards making code compile again
Diffstat (limited to 'src/mint/taler-mint-keyup.c')
-rw-r--r-- | src/mint/taler-mint-keyup.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mint/taler-mint-keyup.c b/src/mint/taler-mint-keyup.c index c2a326566..a57b1e6ba 100644 --- a/src/mint/taler-mint-keyup.c +++ b/src/mint/taler-mint-keyup.c @@ -28,6 +28,11 @@ #include "taler_signatures.h" #include "mint.h" +/** + * FIXME: allow user to specify (within reason). + */ +#define RSA_KEYSIZE 2048 + #define HASH_CUTOFF 20 /** @@ -434,8 +439,8 @@ static void create_denomkey_issue (struct CoinTypeParams *params, struct TALER_MINT_DenomKeyIssuePriv *dki) { - GNUNET_assert (NULL != (dki->denom_priv = GNUNET_CRYPTO_rsa_private_key_create ())); - dki->issue.denom_pub = GNUNET_CRYPTO_rsa_private_key_get_get_public (dki->denom_priv); + GNUNET_assert (NULL != (dki->denom_priv = GNUNET_CRYPTO_rsa_private_key_create (RSA_KEYSIZE))); + dki->issue.denom_pub = GNUNET_CRYPTO_rsa_private_key_get_public (dki->denom_priv); dki->issue.master = *master_pub; dki->issue.start = GNUNET_TIME_absolute_hton (params->anchor); dki->issue.expire_withdraw = |