diff options
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 1 | ||||
-rw-r--r-- | src/vpn/gnunet-vpn.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 7c09827ee..c8f4530eb 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c | |||
@@ -38,6 +38,7 @@ | |||
38 | /** | 38 | /** |
39 | * Need 'struct GNUNET_MessageHeader'. | 39 | * Need 'struct GNUNET_MessageHeader'. |
40 | */ | 40 | */ |
41 | #include "gnunet_crypto_lib.h" | ||
41 | #include "gnunet_common.h" | 42 | #include "gnunet_common.h" |
42 | 43 | ||
43 | /** | 44 | /** |
diff --git a/src/vpn/gnunet-vpn.c b/src/vpn/gnunet-vpn.c index 4c8dc43c0..b4d6824d9 100644 --- a/src/vpn/gnunet-vpn.c +++ b/src/vpn/gnunet-vpn.c | |||
@@ -226,8 +226,9 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
226 | if (udp) | 226 | if (udp) |
227 | protocol = IPPROTO_UDP; | 227 | protocol = IPPROTO_UDP; |
228 | if (GNUNET_OK != | 228 | if (GNUNET_OK != |
229 | GNUNET_CRYPTO_hash_from_string (peer_id, | 229 | GNUNET_CRYPTO_ecc_public_sign_key_from_string (peer_id, |
230 | &peer.hashPubKey)) | 230 | strlen (peer_id), |
231 | &peer.public_key)) | ||
231 | { | 232 | { |
232 | FPRINTF (stderr, _("`%s' is not a valid peer identifier.\n"), | 233 | FPRINTF (stderr, _("`%s' is not a valid peer identifier.\n"), |
233 | peer_id); | 234 | peer_id); |