From a47241c88f2a75d510f26bd163c562715db6acf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Sch=C3=B6lling?= Date: Tue, 10 Mar 2015 17:48:14 +0100 Subject: Add DTLS docs --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 289b61f8..7a0c02b3 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ rust-openssl directory. Then run one of the following commands: * Windows: `openssl s_server -accept 15418 -www -cert test/cert.pem -key test/key.pem > NUL` -* Linux: `openssl s_server -accept 15418 -www -cert test/cert.pem -key +* Linux: `openssl s_server -accept 15418 -www -cert test/cert.pem -key \ test/key.pem >/dev/null` Then in the original terminal, run `cargo test`. If everything is set up @@ -71,4 +71,19 @@ correctly, all tests should pass. You might get some warnings in the `openssl s_server` window. Those aren't anything to worry about. You can stop the server using Control-C. +For DTLS testing each test requires its own instance of OpenSSL's s_server. On +Linux you can start them like this: + + for port in `seq 15410 15450`; do + echo hello | openssl s_server -accept $port -dtls1 -cert test/cert.pem \ + -key test/key.pem -msg -debug & >/dev/null; + done + +Note that the test ssl::tests::write::dtlsv1 should be started individually and +requires an interactive instance: + + openssl s_server -accept 15411 -dtls1 -cert test/cert.pem -key test/key.pem + + + [1]: http://slproweb.com/products/Win32OpenSSL.html -- cgit v1.2.3 From 8a0e9d6cca4459dd0d256fc2e1b9453a9e0c48f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Sch=C3=B6lling?= Date: Wed, 11 Mar 2015 14:08:48 +0100 Subject: Fix travis test setup for DTLS --- README.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7a0c02b3..d38ead28 100644 --- a/README.md +++ b/README.md @@ -72,18 +72,6 @@ s_server` window. Those aren't anything to worry about. You can stop the server using Control-C. For DTLS testing each test requires its own instance of OpenSSL's s_server. On -Linux you can start them like this: - - for port in `seq 15410 15450`; do - echo hello | openssl s_server -accept $port -dtls1 -cert test/cert.pem \ - -key test/key.pem -msg -debug & >/dev/null; - done - -Note that the test ssl::tests::write::dtlsv1 should be started individually and -requires an interactive instance: - - openssl s_server -accept 15411 -dtls1 -cert test/cert.pem -key test/key.pem - - +Linux you can run the bash script in `openssl/tests/test.sh`. [1]: http://slproweb.com/products/Win32OpenSSL.html -- cgit v1.2.3