diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-05-21 12:11:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-05-21 12:11:21 +0000 |
commit | 9b4ab1de0511cbe205be7c5e5881e46947c62af5 (patch) | |
tree | 241a3bc089dfe2c2a38600ecb6cd61c9ef521343 /src/fs/fs_namespace.c | |
parent | 43b524dbd4acad61c41adb9c4e1a5c0394596992 (diff) | |
download | gnunet-9b4ab1de0511cbe205be7c5e5881e46947c62af5.tar.gz gnunet-9b4ab1de0511cbe205be7c5e5881e46947c62af5.zip |
-fixing pseudonym signing bug again -- how did the old fix get undone???
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 e129d70f8..e838c489f 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -716,17 +716,17 @@ GNUNET_FS_publish_sks (struct GNUNET_FS_Handle *h, | |||
716 | ub_enc->purpose.size = htonl (nidlen + slen + mdsize + sizeof (struct UBlock) | 716 | ub_enc->purpose.size = htonl (nidlen + slen + mdsize + sizeof (struct UBlock) |
717 | - sizeof (struct GNUNET_FS_PseudonymSignature)); | 717 | - sizeof (struct GNUNET_FS_PseudonymSignature)); |
718 | ub_enc->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK); | 718 | ub_enc->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK); |
719 | GNUNET_FS_pseudonym_derive_verification_key (&sks_uri->data.sks.ns, | ||
720 | &signing_key, | ||
721 | &ub_enc->verification_key); | ||
722 | GNUNET_CRYPTO_hash (&ub_enc->verification_key, | ||
723 | sizeof (ub_enc->verification_key), | ||
724 | &query); | ||
719 | GNUNET_FS_pseudonym_sign (ns->key, | 725 | GNUNET_FS_pseudonym_sign (ns->key, |
720 | &ub_enc->purpose, | 726 | &ub_enc->purpose, |
721 | NULL, | 727 | NULL, |
722 | &signing_key, | 728 | &signing_key, |
723 | &ub_enc->signature); | 729 | &ub_enc->signature); |
724 | GNUNET_FS_pseudonym_derive_verification_key (&sks_uri->data.sks.ns, | ||
725 | &signing_key, | ||
726 | &ub_enc->verification_key); | ||
727 | GNUNET_CRYPTO_hash (&ub_enc->verification_key, | ||
728 | sizeof (ub_enc->verification_key), | ||
729 | &query); | ||
730 | psc = GNUNET_malloc (sizeof (struct GNUNET_FS_PublishSksContext)); | 730 | psc = GNUNET_malloc (sizeof (struct GNUNET_FS_PublishSksContext)); |
731 | psc->uri = sks_uri; | 731 | psc->uri = sks_uri; |
732 | psc->cont = cont; | 732 | psc->cont = cont; |