[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4804 - in GNUnet/src/applications: fs/ecrs identity
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4804 - in GNUnet/src/applications: fs/ecrs identity |
Date: |
Sun, 27 May 2007 14:29:26 -0600 (MDT) |
Author: grothoff
Date: 2007-05-27 14:29:25 -0600 (Sun, 27 May 2007)
New Revision: 4804
Modified:
GNUnet/src/applications/fs/ecrs/uri.c
GNUnet/src/applications/identity/clientapi.c
Log:
fix
Modified: GNUnet/src/applications/fs/ecrs/uri.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/uri.c 2007-05-27 04:43:23 UTC (rev
4803)
+++ GNUnet/src/applications/fs/ecrs/uri.c 2007-05-27 20:29:25 UTC (rev
4804)
@@ -797,6 +797,12 @@
= STRDUP(uri->data.ksk.keywords[i]);
}
break;
+ case loc:
+ ret->data.loc.address = MALLOC(ret->data.loc.sas);
+ memcpy(ret->data.loc.address,
+ uri->data.loc.address,
+ ret->data.loc.sas);
+ break;
default:
break;
}
Modified: GNUnet/src/applications/identity/clientapi.c
===================================================================
--- GNUnet/src/applications/identity/clientapi.c 2007-05-27 04:43:23 UTC
(rev 4803)
+++ GNUnet/src/applications/identity/clientapi.c 2007-05-27 20:29:25 UTC
(rev 4804)
@@ -60,7 +60,21 @@
memcpy(&msg[1],
address,
sas);
- /* FIXME: check that signature is valid! */
+ /* check that signature is valid -- internal
+ sanity check... */
+ if (SYSERR == verifySig(&msg->m.senderIdentity,
+ P2P_hello_MESSAGE_size(&msg->m)
+ - sizeof(Signature)
+ - sizeof(PublicKey)
+ - sizeof(MESSAGE_HEADER),
+ &msg->m.signature,
+ key)) {
+ GE_BREAK(NULL, 0);
+ FREE(msg);
+ return SYSERR;
+ }
+ fprintf(stderr, "Yepee!\n");
+
if (SYSERR == connection_write(sock,
&msg->m.header)) {
FREE(msg);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4804 - in GNUnet/src/applications: fs/ecrs identity,
gnunet <=