• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTPS
5HTTP GET
6TLS-SRP
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.0 200 OK
14Content-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
32User-Agent: curl-test-suite
33Accept: */*
34
35</PRE></P>
36</BODY></HTML>
37
38</data>
39</reply>
40
41# Client-side
42<client>
43<server>
44httptls+srp
45</server>
46<features>
47TLS-SRP
48</features>
49 <name>
50simple 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">
62HTTP/1.0 200 OK
63Content-type: text/html
64
65FINE
66User-Agent: curl-test-suite
67Accept: */*
68
69</file>
70<stripfile>
71s/^<p>Connected as user 'jsmith'.*/FINE/
72s/Protocol version:.*[0-9]//
73s/GNUTLS/GnuTLS/
74s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
75s/^<.*\n//
76s/^\n//
77</stripfile>
78</verify>
79
80</testcase>
81