Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTPS
      5 HTTP GET
      6 TLS-SRP
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.0 200 OK
     14 Content-type: text/html
     15 
     16 
     17 <HTML><BODY>
     18 <CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER>
     19 
     20 
     21 <p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p>
     22 <h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
     23 <p>Connected as user 'jsmith'.</p>
     24 <P>
     25 <TABLE border=1><TR><TD>Protocol version:</TD><TD>TLS1.2</TD></TR>
     26 <TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
     27 <TR><TD>Compression</TD><TD>NULL</TD></TR>
     28 <TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR>
     29 <TR><TD>MAC</TD><TD>SHA1</TD></TR>
     30 <TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
     31 <hr><P>Your HTTP header was:<PRE>Host: localhost:9011
     32 User-Agent: curl-test-suite
     33 Accept: */*
     34 
     35 </PRE></P>
     36 </BODY></HTML>
     37 
     38 </data>
     39 </reply>
     40 
     41 # Client-side
     42 <client>
     43 <server>
     44 httptls+srp
     45 </server>
     46 <features>
     47 TLS-SRP
     48 </features>
     49  <name>
     50 simple TLS-SRP HTTPS GET, check user in response
     51  </name>
     52 <command>
     53 --insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc -A curl-test-suite https://%HOSTIP:%HTTPTLSPORT
     54 </command>
     55 </client>
     56 
     57 # Verify data after the test has been "shot"
     58 <verify>
     59 <protocol>
     60 </protocol>
     61 <file name="log/curl320.out" mode="text">
     62 HTTP/1.0 200 OK
     63 Content-type: text/html
     64 
     65 
     66 <HTML><BODY>
     67 <CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER>
     68 
     69 
     70 
     71 <h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
     72 <p>Connected as user 'jsmith'.</p>
     73 <P>
     74 <TABLE border=1><TR><TD></TD></TR>
     75 <TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
     76 <TR><TD>Compression</TD><TD>NULL</TD></TR>
     77 <TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR>
     78 <TR><TD>MAC</TD><TD>SHA1</TD></TR>
     79 <TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
     80 <hr><P>Your HTTP header was:<PRE>Host: %HOSTIP:%HTTPTLSPORT
     81 User-Agent: curl-test-suite
     82 Accept: */*
     83 
     84 </PRE></P>
     85 </BODY></HTML>
     86 
     87 </file>
     88 <stripfile>
     89 s/^<p>Session ID:.*//
     90 s/Protocol version:.*[0-9]//
     91 s/GNUTLS/GnuTLS/
     92 s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
     93 </stripfile>
     94 </verify>
     95 
     96 </testcase>
     97