aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport_https.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-07-25 14:17:24 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-07-25 14:17:24 +0000
commit5073cf5873c8c612f841e0a0e0cb0dd20e4c6140 (patch)
treec2dd75eb6b6e8e7a1721b6b4d21abfa04bbd4f04 /src/transport/test_plugin_transport_https.c
parent49bb861ae2f02b2ba5af68cc6aaf13a135032420 (diff)
downloadgnunet-5073cf5873c8c612f841e0a0e0cb0dd20e4c6140.tar.gz
gnunet-5073cf5873c8c612f841e0a0e0cb0dd20e4c6140.zip
Diffstat (limited to 'src/transport/test_plugin_transport_https.c')
-rw-r--r--src/transport/test_plugin_transport_https.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/test_plugin_transport_https.c b/src/transport/test_plugin_transport_https.c
index 7c9229111..f22f6e95f 100644
--- a/src/transport/test_plugin_transport_https.c
+++ b/src/transport/test_plugin_transport_https.c
@@ -548,7 +548,7 @@ receive (void *cls,
548 if ((ntohs(message->type)==32) && (ntohs(message->size) == GNUNET_SERVER_MAX_MESSAGE_SIZE-1)) 548 if ((ntohs(message->type)==32) && (ntohs(message->size) == GNUNET_SERVER_MAX_MESSAGE_SIZE-1))
549 { 549 {
550 fail_msg_transmited_max_size = GNUNET_NO; 550 fail_msg_transmited_max_size = GNUNET_NO;
551 //shutdown_clean(); 551 shutdown_clean();
552 } 552 }
553 553
554 return GNUNET_TIME_UNIT_ZERO; 554 return GNUNET_TIME_UNIT_ZERO;
@@ -963,7 +963,7 @@ static void run_connection_tests( int phase , void * cls)
963 { 963 {
964 /* Connecting to peer without identification */ 964 /* Connecting to peer without identification */
965 char * ident = ""; 965 char * ident = "";
966 GNUNET_asprintf (&host_str, "http://%s/%s",test_addr,ident); 966 GNUNET_asprintf (&host_str, "https://%s/%s",test_addr,ident);
967 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer without any peer identification.\n")); 967 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer without any peer identification.\n"));
968 test_no_ident.test_executed = GNUNET_YES; 968 test_no_ident.test_executed = GNUNET_YES;
969 send_data ( &test_no_ident, host_str); 969 send_data ( &test_no_ident, host_str);
@@ -974,7 +974,7 @@ static void run_connection_tests( int phase , void * cls)
974 { 974 {
975 char * ident = "AAAAAAAAAA"; 975 char * ident = "AAAAAAAAAA";
976 /* Connecting to peer with too short identification */ 976 /* Connecting to peer with too short identification */
977 GNUNET_asprintf (&host_str, "http://%s/%s",test_addr,ident); 977 GNUNET_asprintf (&host_str, "https://%s/%s",test_addr,ident);
978 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer with too short peer identification.\n")); 978 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer with too short peer identification.\n"));
979 test_too_short_ident.test_executed = GNUNET_YES; 979 test_too_short_ident.test_executed = GNUNET_YES;
980 send_data ( &test_too_short_ident, host_str); 980 send_data ( &test_too_short_ident, host_str);
@@ -987,7 +987,7 @@ static void run_connection_tests( int phase , void * cls)
987 char * ident = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; 987 char * ident = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
988 988
989 /* Connecting to peer with too long identification */ 989 /* Connecting to peer with too long identification */
990 GNUNET_asprintf (&host_str, "http://%s/%s",test_addr,ident); 990 GNUNET_asprintf (&host_str, "https://%s/%s",test_addr,ident);
991 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer with too long peer identification.\n")); 991 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer with too long peer identification.\n"));
992 test_too_long_ident.test_executed = GNUNET_YES; 992 test_too_long_ident.test_executed = GNUNET_YES;
993 send_data ( &test_too_long_ident, host_str); 993 send_data ( &test_too_long_ident, host_str);
@@ -998,7 +998,7 @@ static void run_connection_tests( int phase , void * cls)
998 { 998 {
999 struct GNUNET_CRYPTO_HashAsciiEncoded ident; 999 struct GNUNET_CRYPTO_HashAsciiEncoded ident;
1000 GNUNET_CRYPTO_hash_to_enc(&my_identity.hashPubKey,&ident); 1000 GNUNET_CRYPTO_hash_to_enc(&my_identity.hashPubKey,&ident);
1001 GNUNET_asprintf (&host_str, "http://%s/%s%s",test_addr,(char *) &ident,";0"); 1001 GNUNET_asprintf (&host_str, "https://%s/%s%s",test_addr,(char *) &ident,";0");
1002 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer with valid peer identification.\n")); 1002 GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Connecting to peer with valid peer identification.\n"));
1003 test_valid_ident.test_executed = GNUNET_YES; 1003 test_valid_ident.test_executed = GNUNET_YES;
1004 send_data ( &test_valid_ident, host_str); 1004 send_data ( &test_valid_ident, host_str);