[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29756 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29756 - gnunet/src/transport |
Date: |
Tue, 1 Oct 2013 14:04:16 +0200 |
Author: wachs
Date: 2013-10-01 14:04:16 +0200 (Tue, 01 Oct 2013)
New Revision: 29756
Modified:
gnunet/src/transport/test_plugin_transport.c
Log:
fixing test
Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c 2013-10-01 11:56:27 UTC
(rev 29755)
+++ gnunet/src/transport/test_plugin_transport.c 2013-10-01 12:04:16 UTC
(rev 29756)
@@ -25,16 +25,12 @@
*/
#include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_constants.h"
#include "gnunet_util_lib.h"
#include "gnunet_hello_lib.h"
#include "gnunet_peerinfo_service.h"
#include "gnunet_statistics_service.h"
#include "gnunet_protocols.h"
-#include "gnunet_signatures.h"
#include "gnunet_transport_plugin.h"
-
#include "transport.h"
/**
@@ -48,11 +44,6 @@
/**
* Our public key.
*/
-static struct GNUNET_CRYPTO_EccPublicSignKey my_public_key;
-
-/**
- * Our identity.
- */
static struct GNUNET_PeerIdentity my_identity;
/**
@@ -634,13 +625,10 @@
end_badly_now ();
return;
}
- GNUNET_CRYPTO_ecc_key_get_public_for_signature (my_private_key,
&my_public_key);
- GNUNET_CRYPTO_hash (&my_public_key, sizeof (my_public_key),
- &my_identity.hashPubKey);
+ GNUNET_CRYPTO_ecc_key_get_public_for_signature (my_private_key,
&my_identity.public_key);
+ hello = GNUNET_HELLO_create (&my_identity.public_key, NULL, NULL, GNUNET_NO);
- hello = GNUNET_HELLO_create(&my_public_key, NULL, NULL, GNUNET_NO);
-
/* load plugins... */
setup_plugin_environment ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29756 - gnunet/src/transport,
gnunet <=