aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_namespace.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-19 19:11:14 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-19 19:11:14 +0000
commit86df429c4559194975b7767266f7426223eb24b5 (patch)
tree4a2be43d01e33fc0044878456c4dfff74f54d131 /src/fs/fs_namespace.c
parent052ff3499454ce63403d0d582d050f2516873e9f (diff)
-remove more uses of short hash
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r--src/fs/fs_namespace.c12
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;
}