xref: /third_party/curl/tests/data/test320 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTPS
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ciTLS-SRP
713498266Sopenharmony_ci</keywords>
813498266Sopenharmony_ci</info>
913498266Sopenharmony_ci
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci<data nocheck="yes">
1313498266Sopenharmony_ciHTTP/1.0 200 OK
1413498266Sopenharmony_ciContent-type: text/html
1513498266Sopenharmony_ci
1613498266Sopenharmony_ci
1713498266Sopenharmony_ci<HTML><BODY>
1813498266Sopenharmony_ci<CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER>
1913498266Sopenharmony_ci
2013498266Sopenharmony_ci
2113498266Sopenharmony_ci<p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p>
2213498266Sopenharmony_ci<h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
2313498266Sopenharmony_ci<p>Connected as user 'jsmith'.</p>
2413498266Sopenharmony_ci<P>
2513498266Sopenharmony_ci<TABLE border=1><TR><TD>Protocol version:</TD><TD>TLS1.2</TD></TR>
2613498266Sopenharmony_ci<TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
2713498266Sopenharmony_ci<TR><TD>Compression</TD><TD>NULL</TD></TR>
2813498266Sopenharmony_ci<TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR>
2913498266Sopenharmony_ci<TR><TD>MAC</TD><TD>SHA1</TD></TR>
3013498266Sopenharmony_ci<TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
3113498266Sopenharmony_ci<hr><P>Your HTTP header was:<PRE>Host: localhost:9011
3213498266Sopenharmony_ciUser-Agent: curl-test-suite
3313498266Sopenharmony_ciAccept: */*
3413498266Sopenharmony_ci
3513498266Sopenharmony_ci</PRE></P>
3613498266Sopenharmony_ci</BODY></HTML>
3713498266Sopenharmony_ci
3813498266Sopenharmony_ci</data>
3913498266Sopenharmony_ci</reply>
4013498266Sopenharmony_ci
4113498266Sopenharmony_ci# Client-side
4213498266Sopenharmony_ci<client>
4313498266Sopenharmony_ci<server>
4413498266Sopenharmony_cihttptls+srp
4513498266Sopenharmony_ci</server>
4613498266Sopenharmony_ci<features>
4713498266Sopenharmony_ciTLS-SRP
4813498266Sopenharmony_ci</features>
4913498266Sopenharmony_ci<name>
5013498266Sopenharmony_cisimple TLS-SRP HTTPS GET, check user in response
5113498266Sopenharmony_ci</name>
5213498266Sopenharmony_ci<command>
5313498266Sopenharmony_ci--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc -A curl-test-suite https://%HOSTIP:%HTTPTLSPORT
5413498266Sopenharmony_ci</command>
5513498266Sopenharmony_ci</client>
5613498266Sopenharmony_ci
5713498266Sopenharmony_ci# Verify data after the test has been "shot"
5813498266Sopenharmony_ci<verify>
5913498266Sopenharmony_ci<protocol>
6013498266Sopenharmony_ci</protocol>
6113498266Sopenharmony_ci<file name="%LOGDIR/curl%TESTNUMBER.out">
6213498266Sopenharmony_ciHTTP/1.0 200 OK
6313498266Sopenharmony_ciContent-type: text/html
6413498266Sopenharmony_ci
6513498266Sopenharmony_ciFINE
6613498266Sopenharmony_ciUser-Agent: curl-test-suite
6713498266Sopenharmony_ciAccept: */*
6813498266Sopenharmony_ci
6913498266Sopenharmony_ci</file>
7013498266Sopenharmony_ci<stripfile>
7113498266Sopenharmony_cis/^<p>Connected as user 'jsmith'.*/FINE/
7213498266Sopenharmony_cis/Protocol version:.*[0-9]//
7313498266Sopenharmony_cis/GNUTLS/GnuTLS/
7413498266Sopenharmony_cis/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
7513498266Sopenharmony_cis/^<.*\n//
7613498266Sopenharmony_cis/^\n//
7713498266Sopenharmony_ci</stripfile>
7813498266Sopenharmony_ci</verify>
7913498266Sopenharmony_ci
8013498266Sopenharmony_ci</testcase>
81