diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 20:31:28 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 20:31:28 +0100 |
commit | bc8f6e81a4d737625e05e5e268d0d682489873d5 (patch) | |
tree | b706d187c7627c7522ff1ef1eb8663dc11c88d17 /src/mint/taler-mint-keyup.c | |
parent | 62d3d352502f5b1d109b18456a87c704a70fcca5 (diff) | |
download | exchange-bc8f6e81a4d737625e05e5e268d0d682489873d5.tar.xz |
move data_to_string_alloc to GNUnet
Diffstat (limited to 'src/mint/taler-mint-keyup.c')
-rw-r--r-- | src/mint/taler-mint-keyup.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mint/taler-mint-keyup.c b/src/mint/taler-mint-keyup.c index 03c66216b..35a4c0410 100644 --- a/src/mint/taler-mint-keyup.c +++ b/src/mint/taler-mint-keyup.c @@ -180,7 +180,8 @@ get_cointype_dir (const struct CoinTypeParams *p) unsigned int i; hash_coin_type (p, &hash); - hash_str = TALER_data_to_string_alloc (&hash, sizeof (struct GNUNET_HashCode)); + hash_str = GNUNET_STRINGS_data_to_string_alloc (&hash, + sizeof (struct GNUNET_HashCode)); GNUNET_assert (HASH_CUTOFF <= strlen (hash_str) + 1); GNUNET_assert (NULL != hash_str); hash_str[HASH_CUTOFF] = 0; @@ -363,7 +364,8 @@ mint_keys_update_signkeys () { struct TALER_MINT_SignKeyIssuePriv signkey_issue; ssize_t nwrite; - printf ("Generating signing key for %s.\n", GNUNET_STRINGS_absolute_time_to_string (anchor)); + printf ("Generating signing key for %s.\n", + GNUNET_STRINGS_absolute_time_to_string (anchor)); create_signkey_issue_priv (anchor, signkey_duration, &signkey_issue); nwrite = GNUNET_DISK_fn_write (skf, &signkey_issue, sizeof (struct TALER_MINT_SignKeyIssue), (GNUNET_DISK_PERM_USER_WRITE | GNUNET_DISK_PERM_USER_READ)); @@ -498,7 +500,8 @@ mint_keys_update_cointype (const char *coin_alias) struct TALER_MINT_DenomKeyIssuePriv denomkey_issue; int ret; printf ("Generating denomination key for type '%s', start %s.\n", - coin_alias, GNUNET_STRINGS_absolute_time_to_string (p.anchor)); + coin_alias, + GNUNET_STRINGS_absolute_time_to_string (p.anchor)); printf ("Target path: %s\n", dkf); create_denomkey_issue (&p, &denomkey_issue); ret = TALER_MINT_write_denom_key (dkf, &denomkey_issue); |