diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-04-16 11:32:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-04-16 11:32:49 +0000 |
commit | 51e475cdc337a5d11bd3d552159243aa68dfe332 (patch) | |
tree | d3f19afd8b87294223619d30c3319d4490c9c24b /src/fs/fs_search.c | |
parent | bfedb2299a323eb0a5ae39fba56b413e11de4d47 (diff) | |
download | gnunet-51e475cdc337a5d11bd3d552159243aa68dfe332.tar.gz gnunet-51e475cdc337a5d11bd3d552159243aa68dfe332.zip |
-fix
Diffstat (limited to 'src/fs/fs_search.c')
-rw-r--r-- | src/fs/fs_search.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fs/fs_search.c b/src/fs/fs_search.c index 25b34d99c..016201e0f 100644 --- a/src/fs/fs_search.c +++ b/src/fs/fs_search.c | |||
@@ -916,6 +916,7 @@ build_result_set (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
916 | return GNUNET_SYSERR; | 916 | return GNUNET_SYSERR; |
917 | mbc->sc->search_request_map_offset++; | 917 | mbc->sc->search_request_map_offset++; |
918 | mbc->xoff[--mbc->put_cnt] = *key; | 918 | mbc->xoff[--mbc->put_cnt] = *key; |
919 | |||
919 | return GNUNET_OK; | 920 | return GNUNET_OK; |
920 | } | 921 | } |
921 | 922 | ||
@@ -1040,8 +1041,8 @@ transmit_search_request (void *cls, size_t size, void *buf) | |||
1040 | GNUNET_CRYPTO_hash_xor (&id_hash, &ns_hash, &key); | 1041 | GNUNET_CRYPTO_hash_xor (&id_hash, &ns_hash, &key); |
1041 | GNUNET_CRYPTO_hash (&key, sizeof (struct GNUNET_HashCode), &signing_key); | 1042 | GNUNET_CRYPTO_hash (&key, sizeof (struct GNUNET_HashCode), &signing_key); |
1042 | GNUNET_FS_pseudonym_derive_verification_key (&sc->uri->data.sks.ns, | 1043 | GNUNET_FS_pseudonym_derive_verification_key (&sc->uri->data.sks.ns, |
1043 | &signing_key, | 1044 | &signing_key, |
1044 | &verification_key); | 1045 | &verification_key); |
1045 | GNUNET_CRYPTO_hash (&verification_key, | 1046 | GNUNET_CRYPTO_hash (&verification_key, |
1046 | sizeof (verification_key), | 1047 | sizeof (verification_key), |
1047 | &sm->query); | 1048 | &sm->query); |
@@ -1228,8 +1229,8 @@ GNUNET_FS_search_start_searching_ (struct GNUNET_FS_SearchContext *sc) | |||
1228 | GNUNET_CRYPTO_hash (keyword, strlen (keyword), &sc->requests[i].ukey); | 1229 | GNUNET_CRYPTO_hash (keyword, strlen (keyword), &sc->requests[i].ukey); |
1229 | GNUNET_CRYPTO_hash (&sc->requests[i].ukey, sizeof (struct GNUNET_HashCode), &signing_key); | 1230 | GNUNET_CRYPTO_hash (&sc->requests[i].ukey, sizeof (struct GNUNET_HashCode), &signing_key); |
1230 | GNUNET_FS_pseudonym_derive_verification_key (&anon, | 1231 | GNUNET_FS_pseudonym_derive_verification_key (&anon, |
1231 | &signing_key, | 1232 | &signing_key, |
1232 | &verification_key); | 1233 | &verification_key); |
1233 | GNUNET_CRYPTO_hash (&verification_key, sizeof (struct GNUNET_FS_PseudonymIdentifier), | 1234 | GNUNET_CRYPTO_hash (&verification_key, sizeof (struct GNUNET_FS_PseudonymIdentifier), |
1234 | &sc->requests[i].uquery); | 1235 | &sc->requests[i].uquery); |
1235 | sc->requests[i].mandatory = (sc->uri->data.ksk.keywords[i][0] == '+'); | 1236 | sc->requests[i].mandatory = (sc->uri->data.ksk.keywords[i][0] == '+'); |