diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-19 19:11:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-19 19:11:14 +0000 |
commit | 86df429c4559194975b7767266f7426223eb24b5 (patch) | |
tree | 4a2be43d01e33fc0044878456c4dfff74f54d131 /src/fs/fs_namespace.c | |
parent | 052ff3499454ce63403d0d582d050f2516873e9f (diff) |
-remove more uses of short hash
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r-- | src/fs/fs_namespace.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index 2a7af082e3..526ebbdfc3 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c @@ -132,8 +132,8 @@ get_update_information_directory (struct GNUNET_FS_Handle *h, char *dn; char *ret; struct GNUNET_CRYPTO_EccPublicKey pub; - struct GNUNET_CRYPTO_ShortHashCode hc; - struct GNUNET_CRYPTO_ShortHashAsciiEncoded enc; + struct GNUNET_HashCode hc; + struct GNUNET_CRYPTO_HashAsciiEncoded enc; if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (h->cfg, "FS", "UPDATE_DIR", @@ -144,13 +144,13 @@ get_update_information_directory (struct GNUNET_FS_Handle *h, return NULL; } GNUNET_CRYPTO_ecc_key_get_public (ns, &pub); - GNUNET_CRYPTO_short_hash (&pub, sizeof (pub), &hc); - GNUNET_CRYPTO_short_hash_to_enc (&hc, - &enc); + GNUNET_CRYPTO_hash (&pub, sizeof (pub), &hc); + GNUNET_CRYPTO_hash_to_enc (&hc, + &enc); GNUNET_asprintf (&ret, "%s%s%s", dn, DIR_SEPARATOR_STR, - (const char *) enc.short_encoding); + (const char *) enc.encoding); GNUNET_free (dn); return ret; } |