From 59cf93ccdbaa5e866f9de6b2d9b1ae5cee84863f Mon Sep 17 00:00:00 2001
From: Quinn Slack
Date: Wed, 19 Jan 2011 20:35:02 +0100
Subject: TLS-SRP: support added when using GnuTLS
---
tests/data/Makefile.am | 2 +-
tests/data/test320 | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++
tests/data/test321 | 33 ++++++++++++++++++
tests/data/test322 | 33 ++++++++++++++++++
tests/data/test323 | 33 ++++++++++++++++++
tests/data/test324 | 33 ++++++++++++++++++
6 files changed, 228 insertions(+), 1 deletion(-)
create mode 100644 tests/data/test320
create mode 100644 tests/data/test321
create mode 100644 tests/data/test322
create mode 100644 tests/data/test323
create mode 100644 tests/data/test324
(limited to 'tests/data')
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 701b32415..6f4e77a6b 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -69,7 +69,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test569 test570 test571 test572 test804 test805 test806 test807 test573 \
test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \
test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \
- test1303
+ test1303 test320 test321 test322 test323 test324
filecheck:
@mkdir test-place; \
diff --git a/tests/data/test320 b/tests/data/test320
new file mode 100644
index 000000000..bfef00cb2
--- /dev/null
+++ b/tests/data/test320
@@ -0,0 +1,95 @@
+
+
+
+HTTPS
+HTTP GET
+TLS-SRP
+
+
+
+# Server-side
+
+
+HTTP/1.0 200 OK
+Content-type: text/html
+
+
+
+
+
+
+Session ID: 003030000100000001000000000000000030330001000000B062410001000000
+If your browser supports session resuming, then you should see the same session ID, when you press the reload button.
+Connected as user 'jsmith'.
+
+
| Protocol version: | TLS1.2 |
+| Key Exchange: | SRP |
+| Compression | NULL |
+| Cipher | AES-128-CBC |
+| MAC | SHA1 |
+| Ciphersuite | SRP_SHA_AES_128_CBC_SHA1 |
+
Your HTTP header was:
User-Agent: curl/7.21.4-DEV (x86_64-apple-darwin10.5.0) libcurl/7.21.4-DEV GnuTLS/2.10.4 zlib/1.2.5 libidn/1.19
+Host: localhost:9011
+Accept: */*
+
+
+
+
+
+
+
+# Client-side
+
+
+http+tls-srp
+
+
+TLS-SRP
+
+
+simple TLS-SRP HTTPS GET, check user in response
+
+
+--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc https://%HOSTIP:%HTTPTLSSRPPORT
+
+
+
+# Verify data after the test has been "shot"
+
+
+
+
+HTTP/1.0 200 OK
+Content-type: text/html
+
+
+
+
+
+
+
+If your browser supports session resuming, then you should see the same session ID, when you press the reload button.
+Connected as user 'jsmith'.
+
+
|
+ |
| Key Exchange: | SRP |
+| Compression | NULL |
+| Cipher | AES-128-CBC |
+| MAC | SHA1 |
+| Ciphersuite | SRP_SHA_AES_128_CBC_SHA1 |
+
+Host: %HOSTIP:%HTTPTLSSRPPORT
+Accept: */*
+
+
+
+
+
+
+s/^Session ID:.*//
+s/^
Your HTTP header was:.*//
+s/Protocol version:.*//
+
+
+
+
diff --git a/tests/data/test321 b/tests/data/test321
new file mode 100644
index 000000000..84c19bc85
--- /dev/null
+++ b/tests/data/test321
@@ -0,0 +1,33 @@
+
+
+
+HTTPS
+TLS-SRP
+FAILURE
+
+
+
+# Client-side
+
+
+http+tls-srp
+
+
+TLS-SRP
+
+
+TLS-SRP with bad username and password
+
+
+--insecure --tlsauthtype SRP --tlsuser baduser --tlspassword badpass https://%HOSTIP:%HTTPTLSSRPPORT
+
+
+
+# Verify data after the test has been "shot"
+
+
+35
+
+
+
+
diff --git a/tests/data/test322 b/tests/data/test322
new file mode 100644
index 000000000..f44deb54b
--- /dev/null
+++ b/tests/data/test322
@@ -0,0 +1,33 @@
+
+
+
+HTTPS
+TLS-SRP
+FAILURE
+
+
+
+# Client-side
+
+
+http+tls-srp
+
+
+TLS-SRP
+
+
+TLS-SRP with bad password
+
+
+--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword badpass https://%HOSTIP:%HTTPTLSSRPPORT
+
+
+
+# Verify data after the test has been "shot"
+
+
+35
+
+
+
+
diff --git a/tests/data/test323 b/tests/data/test323
new file mode 100644
index 000000000..6439b4d43
--- /dev/null
+++ b/tests/data/test323
@@ -0,0 +1,33 @@
+
+
+
+HTTPS
+TLS-SRP
+FAILURE
+
+
+
+# Client-side
+
+
+https
+
+
+TLS-SRP
+
+
+TLS-SRP to non-TLS-SRP server
+
+
+--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword badpass https://%HOSTIP:%HTTPSPORT/want/323
+
+
+
+# Verify data after the test has been "shot"
+
+
+35
+
+
+
+
diff --git a/tests/data/test324 b/tests/data/test324
new file mode 100644
index 000000000..df150ab3c
--- /dev/null
+++ b/tests/data/test324
@@ -0,0 +1,33 @@
+
+
+
+HTTPS
+TLS-SRP
+FAILURE
+
+
+
+# Client-side
+
+
+http+tls-srp
+
+
+TLS-SRP
+
+
+TLS-SRP with server cert checking
+
+ # no --insecure
+--tlsauthtype SRP --tlsuser jsmith --tlspassword abc https://%HOSTIP:%HTTPTLSSRPPORT/want/323
+
+
+
+# Verify data after the test has been "shot"
+
+
+51
+
+
+
+
--
cgit v1.2.3