diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-01 12:04:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-10-01 12:04:16 +0000 |
commit | 876325b7e1c4c73f1219a9004d6441cf41e7f11b (patch) | |
tree | 4bde12be13d74176a2cb48c84f14aee0965d1f66 /src/transport | |
parent | 441344e348adb861890117fae123c384d03cdd99 (diff) | |
download | gnunet-876325b7e1c4c73f1219a9004d6441cf41e7f11b.tar.gz gnunet-876325b7e1c4c73f1219a9004d6441cf41e7f11b.zip |
fixing test
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_plugin_transport.c | 16 |
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 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_common.h" | ||
29 | #include "gnunet_constants.h" | ||
30 | #include "gnunet_util_lib.h" | 28 | #include "gnunet_util_lib.h" |
31 | #include "gnunet_hello_lib.h" | 29 | #include "gnunet_hello_lib.h" |
32 | #include "gnunet_peerinfo_service.h" | 30 | #include "gnunet_peerinfo_service.h" |
33 | #include "gnunet_statistics_service.h" | 31 | #include "gnunet_statistics_service.h" |
34 | #include "gnunet_protocols.h" | 32 | #include "gnunet_protocols.h" |
35 | #include "gnunet_signatures.h" | ||
36 | #include "gnunet_transport_plugin.h" | 33 | #include "gnunet_transport_plugin.h" |
37 | |||
38 | #include "transport.h" | 34 | #include "transport.h" |
39 | 35 | ||
40 | /** | 36 | /** |
@@ -48,11 +44,6 @@ | |||
48 | /** | 44 | /** |
49 | * Our public key. | 45 | * Our public key. |
50 | */ | 46 | */ |
51 | static struct GNUNET_CRYPTO_EccPublicSignKey my_public_key; | ||
52 | |||
53 | /** | ||
54 | * Our identity. | ||
55 | */ | ||
56 | static struct GNUNET_PeerIdentity my_identity; | 47 | static struct GNUNET_PeerIdentity my_identity; |
57 | 48 | ||
58 | /** | 49 | /** |
@@ -634,12 +625,9 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
634 | end_badly_now (); | 625 | end_badly_now (); |
635 | return; | 626 | return; |
636 | } | 627 | } |
637 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (my_private_key, &my_public_key); | 628 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (my_private_key, &my_identity.public_key); |
638 | GNUNET_CRYPTO_hash (&my_public_key, sizeof (my_public_key), | ||
639 | &my_identity.hashPubKey); | ||
640 | |||
641 | 629 | ||
642 | hello = GNUNET_HELLO_create(&my_public_key, NULL, NULL, GNUNET_NO); | 630 | hello = GNUNET_HELLO_create (&my_identity.public_key, NULL, NULL, GNUNET_NO); |
643 | 631 | ||
644 | /* load plugins... */ | 632 | /* load plugins... */ |
645 | setup_plugin_environment (); | 633 | setup_plugin_environment (); |