diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-05-29 08:18:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-05-29 08:18:55 +0000 |
commit | 022002438e4047d235a688cfd9da7b63ab990103 (patch) | |
tree | 8d0cb444a3ab376b5a8f614fb87bdeb31e7b3327 /src/pt | |
parent | b62eb443ee3af84f87030fad9fd11a948b1a2503 (diff) | |
download | gnunet-022002438e4047d235a688cfd9da7b63ab990103.tar.gz gnunet-022002438e4047d235a688cfd9da7b63ab990103.zip |
-switching GNS from RSA to ECC
Diffstat (limited to 'src/pt')
-rw-r--r-- | src/pt/test_gns_vpn.c | 8 | ||||
-rw-r--r-- | src/pt/test_gnunet_vpn.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c index d550e3511..7eed31ceb 100644 --- a/src/pt/test_gns_vpn.c +++ b/src/pt/test_gns_vpn.c | |||
@@ -363,7 +363,7 @@ run (void *cls, | |||
363 | enum MHD_FLAG flags; | 363 | enum MHD_FLAG flags; |
364 | struct GNUNET_PeerIdentity id; | 364 | struct GNUNET_PeerIdentity id; |
365 | struct GNUNET_CRYPTO_HashAsciiEncoded peername; | 365 | struct GNUNET_CRYPTO_HashAsciiEncoded peername; |
366 | struct GNUNET_CRYPTO_RsaPrivateKey *host_key; | 366 | struct GNUNET_CRYPTO_EccPrivateKey *host_key; |
367 | struct GNUNET_NAMESTORE_RecordData rd; | 367 | struct GNUNET_NAMESTORE_RecordData rd; |
368 | char *rd_string; | 368 | char *rd_string; |
369 | char *zone_keyfile; | 369 | char *zone_keyfile; |
@@ -392,7 +392,7 @@ run (void *cls, | |||
392 | return; | 392 | return; |
393 | } | 393 | } |
394 | 394 | ||
395 | host_key = GNUNET_CRYPTO_rsa_key_create_from_file (zone_keyfile); | 395 | host_key = GNUNET_CRYPTO_ecc_key_create_from_file (zone_keyfile); |
396 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value; | 396 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value; |
397 | GNUNET_asprintf (&rd_string, "6 %s %s", (char*)&peername, "www.gads."); | 397 | GNUNET_asprintf (&rd_string, "6 %s %s", (char*)&peername, "www.gads."); |
398 | GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_string_to_value (GNUNET_GNS_RECORD_VPN, | 398 | GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_string_to_value (GNUNET_GNS_RECORD_VPN, |
@@ -410,7 +410,7 @@ run (void *cls, | |||
410 | GNUNET_free ((void**)rd.data); | 410 | GNUNET_free ((void**)rd.data); |
411 | GNUNET_free (rd_string); | 411 | GNUNET_free (rd_string); |
412 | GNUNET_free (zone_keyfile); | 412 | GNUNET_free (zone_keyfile); |
413 | GNUNET_CRYPTO_rsa_key_free (host_key); | 413 | GNUNET_CRYPTO_ecc_key_free (host_key); |
414 | } | 414 | } |
415 | 415 | ||
416 | 416 | ||
@@ -561,7 +561,7 @@ main (int argc, char *const *argv) | |||
561 | GNUNET_free (bin_vpn); | 561 | GNUNET_free (bin_vpn); |
562 | GNUNET_free (bin_exit); | 562 | GNUNET_free (bin_exit); |
563 | GNUNET_free (bin_dns); | 563 | GNUNET_free (bin_dns); |
564 | GNUNET_CRYPTO_rsa_setup_hostkey ("test_gns_vpn.conf"); | 564 | GNUNET_CRYPTO_ecc_setup_hostkey ("test_gns_vpn.conf"); |
565 | 565 | ||
566 | dest_ip = "169.254.86.1"; | 566 | dest_ip = "169.254.86.1"; |
567 | dest_af = AF_INET; | 567 | dest_af = AF_INET; |
diff --git a/src/pt/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c index c8c7317fc..3a675654d 100644 --- a/src/pt/test_gnunet_vpn.c +++ b/src/pt/test_gnunet_vpn.c | |||
@@ -426,7 +426,7 @@ main (int argc, char *const *argv) | |||
426 | 426 | ||
427 | GNUNET_free (vpn_binary); | 427 | GNUNET_free (vpn_binary); |
428 | GNUNET_free (exit_binary); | 428 | GNUNET_free (exit_binary); |
429 | GNUNET_CRYPTO_rsa_setup_hostkey ("test_gnunet_vpn.conf"); | 429 | GNUNET_CRYPTO_ecc_setup_hostkey ("test_gnunet_vpn.conf"); |
430 | bin = argv[0]; | 430 | bin = argv[0]; |
431 | if (NULL != strstr (bin, "lt-")) | 431 | if (NULL != strstr (bin, "lt-")) |
432 | bin = strstr (bin, "lt-") + 4; | 432 | bin = strstr (bin, "lt-") + 4; |