diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-08-30 19:03:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-08-30 19:03:53 +0000 |
commit | 0ed78fc783399971276412dc48130ec5e7256512 (patch) | |
tree | fe31f5c135546c119b05d1660b764901dd0cab62 /src/fs/fs_uri.c | |
parent | 5cf21b88fb81906c3da589495da11291d5c12d35 (diff) | |
download | gnunet-0ed78fc783399971276412dc48130ec5e7256512.tar.gz gnunet-0ed78fc783399971276412dc48130ec5e7256512.zip |
sblocks
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 8e69a8425..47bad3454 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -628,11 +628,11 @@ uri_loc_parse (const char *s, char **emsg) | |||
628 | goto ERR; | 628 | goto ERR; |
629 | } | 629 | } |
630 | ass.purpose.size = htonl(sizeof(struct LocUriAssembly)); | 630 | ass.purpose.size = htonl(sizeof(struct LocUriAssembly)); |
631 | ass.purpose.purpose = htonl(GNUNET_SIGNATURE_PURPOSE_NAMESPACE_PLACEMENT); | 631 | ass.purpose.purpose = htonl(GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT); |
632 | et.value = exptime; | 632 | et.value = exptime; |
633 | ass.exptime = GNUNET_TIME_absolute_hton (et); | 633 | ass.exptime = GNUNET_TIME_absolute_hton (et); |
634 | if (GNUNET_OK != | 634 | if (GNUNET_OK != |
635 | GNUNET_CRYPTO_rsa_verify (GNUNET_SIGNATURE_PURPOSE_NAMESPACE_PLACEMENT, | 635 | GNUNET_CRYPTO_rsa_verify (GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT, |
636 | &ass.purpose, | 636 | &ass.purpose, |
637 | &sig, | 637 | &sig, |
638 | &ass.peer)) | 638 | &ass.peer)) |
@@ -847,7 +847,7 @@ GNUNET_FS_uri_loc_create (const struct GNUNET_FS_Uri *baseUri, | |||
847 | GNUNET_free (keyfile); | 847 | GNUNET_free (keyfile); |
848 | GNUNET_CRYPTO_rsa_key_get_public (my_private_key, &my_public_key); | 848 | GNUNET_CRYPTO_rsa_key_get_public (my_private_key, &my_public_key); |
849 | ass.purpose.size = htonl(sizeof(struct LocUriAssembly)); | 849 | ass.purpose.size = htonl(sizeof(struct LocUriAssembly)); |
850 | ass.purpose.purpose = htonl(GNUNET_SIGNATURE_PURPOSE_NAMESPACE_PLACEMENT); | 850 | ass.purpose.purpose = htonl(GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT); |
851 | ass.exptime = GNUNET_TIME_absolute_hton (expiration_time); | 851 | ass.exptime = GNUNET_TIME_absolute_hton (expiration_time); |
852 | ass.fi = baseUri->data.chk; | 852 | ass.fi = baseUri->data.chk; |
853 | ass.peer = my_public_key; | 853 | ass.peer = my_public_key; |