aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-29 12:43:28 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-29 12:43:28 +0000
commit38286be4353cbb76a6d1ead3ff3601b294d46c89 (patch)
tree2ebc4880b338cbf7a208ed4d2d768b3dbb7a7c4e /src/transport
parent3c96ac35df35d267713bd89a0bc9cd8df99215bc (diff)
downloadgnunet-38286be4353cbb76a6d1ead3ff3601b294d46c89.tar.gz
gnunet-38286be4353cbb76a6d1ead3ff3601b294d46c89.zip
quota compliance testing for https
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/Makefile.am16
-rw-r--r--src/transport/test_quota_compliance.c7
-rw-r--r--src/transport/test_quota_compliance_https_peer1.conf114
-rw-r--r--src/transport/test_quota_compliance_https_peer2.conf114
4 files changed, 246 insertions, 5 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 067e882a2..fbda1c614 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -202,7 +202,8 @@ check_PROGRAMS = \
202 $(HTTP_REL_TEST) \ 202 $(HTTP_REL_TEST) \
203 $(HTTPS_REL_TEST) \ 203 $(HTTPS_REL_TEST) \
204 test_quota_compliance_tcp \ 204 test_quota_compliance_tcp \
205 test_quota_compliance_http 205 test_quota_compliance_http \
206 test_quota_compliance_https
206# TODO: add tests for nat, etc. 207# TODO: add tests for nat, etc.
207 208
208if !DISABLE_TEST_RUN 209if !DISABLE_TEST_RUN
@@ -220,7 +221,8 @@ TESTS = \
220 $(HTTP_REL_TEST) \ 221 $(HTTP_REL_TEST) \
221 $(HTTPS_REL_TEST) \ 222 $(HTTPS_REL_TEST) \
222 test_quota_compliance_tcp \ 223 test_quota_compliance_tcp \
223 test_quota_compliance_http 224 test_quota_compliance_http \
225 test_quota_compliance_https
224endif 226endif
225 227
226test_transport_api_tcp_SOURCES = \ 228test_transport_api_tcp_SOURCES = \
@@ -319,6 +321,12 @@ test_quota_compliance_http_LDADD = \
319 $(top_builddir)/src/transport/libgnunettransport.la \ 321 $(top_builddir)/src/transport/libgnunettransport.la \
320 $(top_builddir)/src/util/libgnunetutil.la 322 $(top_builddir)/src/util/libgnunetutil.la
321 323
324test_quota_compliance_https_SOURCES = \
325 test_quota_compliance.c
326test_quota_compliance_https_LDADD = \
327 $(top_builddir)/src/transport/libgnunettransport.la \
328 $(top_builddir)/src/util/libgnunetutil.la
329
322endif 330endif
323 331
324EXTRA_DIST = \ 332EXTRA_DIST = \
@@ -346,4 +354,6 @@ EXTRA_DIST = \
346 test_quota_compliance_tcp_peer1.conf \ 354 test_quota_compliance_tcp_peer1.conf \
347 test_quota_compliance_tcp_peer2.conf \ 355 test_quota_compliance_tcp_peer2.conf \
348 test_quota_compliance_http_peer1.conf \ 356 test_quota_compliance_http_peer1.conf \
349 test_quota_compliance_http_peer2.conf \ No newline at end of file 357 test_quota_compliance_http_peer2.conf \
358 test_quota_compliance_https_peer1.conf \
359 test_quota_compliance_https_peer2.conf \ No newline at end of file
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index 0c5acbdc3..2a4a97265 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -593,8 +593,11 @@ run (void *cls,
593 } 593 }
594 else if (is_https) 594 else if (is_https)
595 { 595 {
596 setup_peer (&p1, "test_quota_compliance_tcp_peer1.conf"); 596 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
597 setup_peer (&p2, "test_quota_compliance_tcp_peer2.conf"); 597 "is_https: %u \n",
598 is_https);
599 setup_peer (&p1, "test_quota_compliance_https_peer1.conf");
600 setup_peer (&p2, "test_quota_compliance_https_peer2.conf");
598 } 601 }
599 else if (is_udp) 602 else if (is_udp)
600 { 603 {
diff --git a/src/transport/test_quota_compliance_https_peer1.conf b/src/transport/test_quota_compliance_https_peer1.conf
new file mode 100644
index 000000000..b2c4ea9f2
--- /dev/null
+++ b/src/transport/test_quota_compliance_https_peer1.conf
@@ -0,0 +1,114 @@
1[PATHS]
2SERVICEHOME = /tmp/test_quota_compliance_peer1/
3DEFAULTCONFIG = test_quota_compliance_https_peer1.conf
4
5[fs]
6AUTOSTART = NO
7
8[datastore]
9AUTOSTART = NO
10
11[hostlist]
12HTTP-PROXY =
13SERVERS = http://gnunet.org:8080/
14OPTIONS = -b
15BINARY = gnunet-daemon-hostlist
16CONFIG = $DEFAULTCONFIG
17HOME = $SERVICEHOME
18HOSTNAME = localhost
19HTTPPORT = 8080
20
21[topology]
22BINARY = gnunet-daemon-topology
23CONFIG = $DEFAULTCONFIG
24FRIENDS = $SERVICEHOME/friends
25TARGET-CONNECTION-COUNT = 16
26AUTOCONNECT = YES
27FRIENDS-ONLY = NO
28MINIMUM-FRIENDS = 0
29
30[core]
31AUTOSTART = NO
32
33[transport-https]
34PORT = 4001
35#DEBUG = YES
36USE_IPv4 = YES
37USE_IPv6 = NO
38BINDTO4 = 127.0.0.1
39#BINDTO6 = ::1
40KEY_FILE = https_key_p1.key
41CERT_FILE = https_cert_p1.crt
42CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL
43#CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+MD5:+RSA:+COMP-NULL
44#CRYPTO_INIT = PERFORMANCE
45
46
47[transport]
48plugins = https
49#DEBUG = YES
50PREFIX =
51ACCEPT_FROM6 = ::1;
52ACCEPT_FROM = 127.0.0.1;
53NEIGHBOUR_LIMIT = 50
54BINARY = gnunet-service-transport
55CONFIG = $DEFAULTCONFIG
56HOME = $SERVICEHOME
57HOSTNAME = localhost
58PORT = 4091
59UNIXPATH = /tmp/test_quota_compliance_peer1/test_quota_compliance_transport_peer1.sock
60
61[peerinfo]
62TRUST = $SERVICEHOME/data/credit/
63HOSTS = $SERVICEHOME/data/hosts/
64ACCEPT_FROM6 = ::1;
65ACCEPT_FROM = 127.0.0.1;
66BINARY = gnunet-service-peerinfo
67CONFIG = $DEFAULTCONFIG
68HOME = $SERVICEHOME
69HOSTNAME = localhost
70PORT = 4090
71UNIXPATH = /tmp/test_quota_compliance_peer1/test_quota_compliance_peerinfo_peer1.sock
72
73[resolver]
74ACCEPT_FROM6 = ::1;
75ACCEPT_FROM = 127.0.0.1;
76BINARY = gnunet-service-resolver
77CONFIG = $DEFAULTCONFIG
78HOME = $SERVICEHOME
79HOSTNAME = localhost
80PORT = 4089
81UNIXPATH = /tmp/test_quota_compliance_peer1/test_quota_compliance_resolver_peer1.sock
82
83[statistics]
84ACCEPT_FROM6 = ::1;
85ACCEPT_FROM = 127.0.0.1;
86BINARY = gnunet-service-statistics
87CONFIG = $DEFAULTCONFIG
88HOME = $SERVICEHOME
89HOSTNAME = localhost
90PORT = 4088
91UNIXPATH = /tmp/test_quota_compliance_peer1/test_quota_compliance_statistics_peer1.sock
92
93[arm]
94DEFAULTSERVICES =
95ACCEPT_FROM6 = ::1;
96ACCEPT_FROM = 127.0.0.1;
97BINARY = gnunet-service-arm
98CONFIG = $DEFAULTCONFIG
99HOME = $SERVICEHOME
100HOSTNAME = localhost
101PORT = 4087
102UNIXPATH = /tmp/test_quota_compliance_peer1/test_quota_compliance_arm_peer1.sock
103
104[TESTING]
105WEAKRANDOM = YES
106
107[gnunetd]
108HOSTKEY = $SERVICEHOME/.hostkey
109
110
111[dht]
112AUTOSTART = NO
113
114
diff --git a/src/transport/test_quota_compliance_https_peer2.conf b/src/transport/test_quota_compliance_https_peer2.conf
new file mode 100644
index 000000000..bf9debcf0
--- /dev/null
+++ b/src/transport/test_quota_compliance_https_peer2.conf
@@ -0,0 +1,114 @@
1[PATHS]
2SERVICEHOME = /tmp/test_quota_compliance_peer2
3DEFAULTCONFIG = test_quota_compliance_https_peer2.conf
4
5[transport-https]
6PORT = 3001
7#DEBUG = YES
8USE_IPv4 = YES
9USE_IPv6 = NO
10BINDTO4 = 127.0.0.1
11#BINDTO6 = ::1
12KEY_FILE = https_key_p1.key
13CERT_FILE = https_cert_p1.crt
14CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+SHA1:+RSA:+COMP-NULL
15#CRYPTO_INIT = NONE:+VERS-TLS1.0:+ARCFOUR-128:+MD5:+RSA:+COMP-NULL
16#CRYPTO_INIT = PERFORMANCE
17
18
19[fs]
20AUTOSTART = NO
21
22[datastore]
23AUTOSTART = NO
24
25[hostlist]
26HTTP-PROXY =
27SERVERS = http://gnunet.org:8080/
28OPTIONS = -b
29BINARY = gnunet-daemon-hostlist
30CONFIG = $DEFAULTCONFIG
31HOME = $SERVICEHOME
32HOSTNAME = localhost
33HTTPPORT = 8080
34
35[topology]
36BINARY = gnunet-daemon-topology
37CONFIG = $DEFAULTCONFIG
38FRIENDS = $SERVICEHOME/friends
39TARGET-CONNECTION-COUNT = 16
40AUTOCONNECT = YES
41FRIENDS-ONLY = NO
42MINIMUM-FRIENDS = 0
43
44[core]
45AUTOSTART = NO
46
47[transport]
48plugins = https
49#DEBUG = YES
50PREFIX =
51ACCEPT_FROM6 = ::1;
52ACCEPT_FROM = 127.0.0.1;
53NEIGHBOUR_LIMIT = 50
54BINARY = gnunet-service-transport
55CONFIG = $DEFAULTCONFIG
56HOME = $SERVICEHOME
57HOSTNAME = localhost
58PORT = 3091
59UNIXPATH = /tmp/test_quota_compliance_peer2/test_quota_compliance_transport_peer2.sock
60
61[peerinfo]
62TRUST = $SERVICEHOME/data/credit/
63HOSTS = $SERVICEHOME/data/hosts/
64ACCEPT_FROM6 = ::1;
65ACCEPT_FROM = 127.0.0.1;
66BINARY = gnunet-service-peerinfo
67CONFIG = $DEFAULTCONFIG
68HOME = $SERVICEHOME
69HOSTNAME = localhost
70PORT = 3090
71UNIXPATH = /tmp/test_quota_compliance_peer2/test_quota_compliance_peerinfo_peer2.sock
72
73[resolver]
74ACCEPT_FROM6 = ::1;
75ACCEPT_FROM = 127.0.0.1;
76BINARY = gnunet-service-resolver
77CONFIG = $DEFAULTCONFIG
78HOME = $SERVICEHOME
79HOSTNAME = localhost
80PORT = 3089
81UNIXPATH = /tmp/test_quota_compliance_peer2/test_quota_compliance_resolver_peer2.sock
82
83[statistics]
84ACCEPT_FROM6 = ::1;
85ACCEPT_FROM = 127.0.0.1;
86BINARY = gnunet-service-statistics
87CONFIG = $DEFAULTCONFIG
88HOME = $SERVICEHOME
89HOSTNAME = localhost
90PORT = 3088
91UNIXPATH = /tmp/test_quota_compliance_peer2/test_quota_compliance_statistics_peer2.sock
92
93[arm]
94DEFAULTSERVICES =
95ACCEPT_FROM6 = ::1;
96ACCEPT_FROM = 127.0.0.1;
97BINARY = gnunet-service-arm
98CONFIG = $DEFAULTCONFIG
99HOME = $SERVICEHOME
100HOSTNAME = localhost
101PORT = 3087
102UNIXPATH = /tmp/test_quota_compliance_peer2/test_quota_compliance_arm_peer2.sock
103
104[TESTING]
105WEAKRANDOM = YES
106
107[gnunetd]
108HOSTKEY = $SERVICEHOME/.hostkey
109
110
111[dht]
112AUTOSTART = NO
113
114