summaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-10-01 12:04:16 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-10-01 12:04:16 +0000
commit876325b7e1c4c73f1219a9004d6441cf41e7f11b (patch)
tree4bde12be13d74176a2cb48c84f14aee0965d1f66 /src/transport/test_plugin_transport.c
parent441344e348adb861890117fae123c384d03cdd99 (diff)
fixing test
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index eecb30605..816b40a2e 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -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,12 +625,9 @@ run (void *cls, char *const *args, const char *cfgfile,
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_public_key, NULL, NULL, GNUNET_NO);
+ hello = GNUNET_HELLO_create (&my_identity.public_key, NULL, NULL, GNUNET_NO);
/* load plugins... */
setup_plugin_environment ();