diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-27 09:05:36 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-27 09:05:36 +0000 |
commit | 9fa4c3cadc4f9e1badf658233ea779adcc24c355 (patch) | |
tree | 6d63794b5e7f8f0db36f42d2800a10b66507fac0 /src/transport/test_transport_api_reliability.c | |
parent | 8c5dcd89bb7ef6e86f3315d880a2b479ab504811 (diff) | |
download | gnunet-9fa4c3cadc4f9e1badf658233ea779adcc24c355.tar.gz gnunet-9fa4c3cadc4f9e1badf658233ea779adcc24c355.zip |
initial checkin of https transport
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index c86b582b9..3e22299de 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -80,6 +80,8 @@ static int is_tcp_nat; | |||
80 | 80 | ||
81 | static int is_http; | 81 | static int is_http; |
82 | 82 | ||
83 | static int is_https; | ||
84 | |||
83 | static int is_udp; | 85 | static int is_udp; |
84 | 86 | ||
85 | static int connected; | 87 | static int connected; |
@@ -121,6 +123,7 @@ end () | |||
121 | } | 123 | } |
122 | 124 | ||
123 | 125 | ||
126 | |||
124 | static void | 127 | static void |
125 | stop_arm (struct PeerContext *p) | 128 | stop_arm (struct PeerContext *p) |
126 | { | 129 | { |
@@ -449,6 +452,11 @@ run (void *cls, | |||
449 | setup_peer (&p1, "test_transport_api_rel_http_peer1.conf"); | 452 | setup_peer (&p1, "test_transport_api_rel_http_peer1.conf"); |
450 | setup_peer (&p2, "test_transport_api_rel_http_peer2.conf"); | 453 | setup_peer (&p2, "test_transport_api_rel_http_peer2.conf"); |
451 | } | 454 | } |
455 | else if (is_https) | ||
456 | { | ||
457 | setup_peer (&p1, "test_transport_api_rel_https_peer1.conf"); | ||
458 | setup_peer (&p2, "test_transport_api_rel_https_peer2.conf"); | ||
459 | } | ||
452 | else if (is_udp) | 460 | else if (is_udp) |
453 | { | 461 | { |
454 | setup_peer (&p1, "test_transport_api_udp_peer1.conf"); | 462 | setup_peer (&p1, "test_transport_api_udp_peer1.conf"); |
@@ -510,6 +518,10 @@ main (int argc, char *argv[]) | |||
510 | { | 518 | { |
511 | is_tcp = GNUNET_YES; | 519 | is_tcp = GNUNET_YES; |
512 | } | 520 | } |
521 | else if (strstr(argv[0], "https") != NULL) | ||
522 | { | ||
523 | is_https = GNUNET_YES; | ||
524 | } | ||
513 | else if (strstr(argv[0], "http") != NULL) | 525 | else if (strstr(argv[0], "http") != NULL) |
514 | { | 526 | { |
515 | is_http = GNUNET_YES; | 527 | is_http = GNUNET_YES; |