mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
3fd80c7b59
The threee tags `<name>`, `</name>` and `<command>` were frequently used with a leading space that this removes. The reason this habbit is so widespread in testcases is probably that they have been copy and pasted. Hence, fixing them all now might curb this practice from now on. Closes #12028
81 lines
1.6 KiB
Plaintext
81 lines
1.6 KiB
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTPS
|
|
HTTP GET
|
|
TLS-SRP
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
HTTP/1.0 200 OK
|
|
Content-type: text/html
|
|
|
|
|
|
<HTML><BODY>
|
|
<CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER>
|
|
|
|
|
|
<p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p>
|
|
<h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
|
|
<p>Connected as user 'jsmith'.</p>
|
|
<P>
|
|
<TABLE border=1><TR><TD>Protocol version:</TD><TD>TLS1.2</TD></TR>
|
|
<TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
|
|
<TR><TD>Compression</TD><TD>NULL</TD></TR>
|
|
<TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR>
|
|
<TR><TD>MAC</TD><TD>SHA1</TD></TR>
|
|
<TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
|
|
<hr><P>Your HTTP header was:<PRE>Host: localhost:9011
|
|
User-Agent: curl-test-suite
|
|
Accept: */*
|
|
|
|
</PRE></P>
|
|
</BODY></HTML>
|
|
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
httptls+srp
|
|
</server>
|
|
<features>
|
|
TLS-SRP
|
|
</features>
|
|
<name>
|
|
simple TLS-SRP HTTPS GET, check user in response
|
|
</name>
|
|
<command>
|
|
--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc -A curl-test-suite https://%HOSTIP:%HTTPTLSPORT
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
</protocol>
|
|
<file name="%LOGDIR/curl%TESTNUMBER.out">
|
|
HTTP/1.0 200 OK
|
|
Content-type: text/html
|
|
|
|
FINE
|
|
User-Agent: curl-test-suite
|
|
Accept: */*
|
|
|
|
</file>
|
|
<stripfile>
|
|
s/^<p>Connected as user 'jsmith'.*/FINE/
|
|
s/Protocol version:.*[0-9]//
|
|
s/GNUTLS/GnuTLS/
|
|
s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
|
|
s/^<.*\n//
|
|
s/^\n//
|
|
</stripfile>
|
|
</verify>
|
|
|
|
</testcase>
|