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) | |
download | gnunet-86df429c4559194975b7767266f7426223eb24b5.tar.gz gnunet-86df429c4559194975b7767266f7426223eb24b5.zip |
-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 2a7af082e..526ebbdfc 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, | |||
132 | char *dn; | 132 | char *dn; |
133 | char *ret; | 133 | char *ret; |
134 | struct GNUNET_CRYPTO_EccPublicKey pub; | 134 | struct GNUNET_CRYPTO_EccPublicKey pub; |
135 | struct GNUNET_CRYPTO_ShortHashCode hc; | 135 | struct GNUNET_HashCode hc; |
136 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded enc; | 136 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
137 | 137 | ||
138 | if (GNUNET_OK != | 138 | if (GNUNET_OK != |
139 | GNUNET_CONFIGURATION_get_value_filename (h->cfg, "FS", "UPDATE_DIR", | 139 | GNUNET_CONFIGURATION_get_value_filename (h->cfg, "FS", "UPDATE_DIR", |
@@ -144,13 +144,13 @@ get_update_information_directory (struct GNUNET_FS_Handle *h, | |||
144 | return NULL; | 144 | return NULL; |
145 | } | 145 | } |
146 | GNUNET_CRYPTO_ecc_key_get_public (ns, &pub); | 146 | GNUNET_CRYPTO_ecc_key_get_public (ns, &pub); |
147 | GNUNET_CRYPTO_short_hash (&pub, sizeof (pub), &hc); | 147 | GNUNET_CRYPTO_hash (&pub, sizeof (pub), &hc); |
148 | GNUNET_CRYPTO_short_hash_to_enc (&hc, | 148 | GNUNET_CRYPTO_hash_to_enc (&hc, |
149 | &enc); | 149 | &enc); |
150 | GNUNET_asprintf (&ret, "%s%s%s", | 150 | GNUNET_asprintf (&ret, "%s%s%s", |
151 | dn, | 151 | dn, |
152 | DIR_SEPARATOR_STR, | 152 | DIR_SEPARATOR_STR, |
153 | (const char *) enc.short_encoding); | 153 | (const char *) enc.encoding); |
154 | GNUNET_free (dn); | 154 | GNUNET_free (dn); |
155 | return ret; | 155 | return ret; |
156 | } | 156 | } |