1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerHTTPS 5*6236dae4SAndroid Build Coastguard WorkerHTTP GET 6*6236dae4SAndroid Build Coastguard WorkerTLS-SRP 7*6236dae4SAndroid Build Coastguard Worker</keywords> 8*6236dae4SAndroid Build Coastguard Worker</info> 9*6236dae4SAndroid Build Coastguard Worker 10*6236dae4SAndroid Build Coastguard Worker# Server-side 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes"> 13*6236dae4SAndroid Build Coastguard WorkerHTTP/1.0 200 OK 14*6236dae4SAndroid Build Coastguard WorkerContent-type: text/html 15*6236dae4SAndroid Build Coastguard Worker 16*6236dae4SAndroid Build Coastguard Worker 17*6236dae4SAndroid Build Coastguard Worker<HTML><BODY> 18*6236dae4SAndroid Build Coastguard Worker<CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GnuTLS</a></H1></CENTER> 19*6236dae4SAndroid Build Coastguard Worker 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker<p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p> 22*6236dae4SAndroid Build Coastguard Worker<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*6236dae4SAndroid Build Coastguard Worker<p>Connected as user 'jsmith'.</p> 24*6236dae4SAndroid Build Coastguard Worker<P> 25*6236dae4SAndroid Build Coastguard Worker<TABLE border=1><TR><TD>Protocol version:</TD><TD>TLS1.2</TD></TR> 26*6236dae4SAndroid Build Coastguard Worker<TR><TD>Key Exchange:</TD><TD>SRP</TD></TR> 27*6236dae4SAndroid Build Coastguard Worker<TR><TD>Compression</TD><TD>NULL</TD></TR> 28*6236dae4SAndroid Build Coastguard Worker<TR><TD>Cipher</TD><TD>AES-NNN-CBC</TD></TR> 29*6236dae4SAndroid Build Coastguard Worker<TR><TD>MAC</TD><TD>SHA1</TD></TR> 30*6236dae4SAndroid Build Coastguard Worker<TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE> 31*6236dae4SAndroid Build Coastguard Worker<hr><P>Your HTTP header was:<PRE>Host: localhost:9011 32*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl-test-suite 33*6236dae4SAndroid Build Coastguard WorkerAccept: */* 34*6236dae4SAndroid Build Coastguard Worker 35*6236dae4SAndroid Build Coastguard Worker</PRE></P> 36*6236dae4SAndroid Build Coastguard Worker</BODY></HTML> 37*6236dae4SAndroid Build Coastguard Worker 38*6236dae4SAndroid Build Coastguard Worker</data> 39*6236dae4SAndroid Build Coastguard Worker</reply> 40*6236dae4SAndroid Build Coastguard Worker 41*6236dae4SAndroid Build Coastguard Worker# Client-side 42*6236dae4SAndroid Build Coastguard Worker<client> 43*6236dae4SAndroid Build Coastguard Worker<server> 44*6236dae4SAndroid Build Coastguard Workerhttptls+srp 45*6236dae4SAndroid Build Coastguard Worker</server> 46*6236dae4SAndroid Build Coastguard Worker<features> 47*6236dae4SAndroid Build Coastguard WorkerTLS-SRP 48*6236dae4SAndroid Build Coastguard Worker</features> 49*6236dae4SAndroid Build Coastguard Worker<name> 50*6236dae4SAndroid Build Coastguard Workersimple TLS-SRP HTTPS GET, check user in response 51*6236dae4SAndroid Build Coastguard Worker</name> 52*6236dae4SAndroid Build Coastguard Worker<command> 53*6236dae4SAndroid Build Coastguard Worker--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc -A curl-test-suite https://%HOSTIP:%HTTPTLSPORT 54*6236dae4SAndroid Build Coastguard Worker</command> 55*6236dae4SAndroid Build Coastguard Worker</client> 56*6236dae4SAndroid Build Coastguard Worker 57*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 58*6236dae4SAndroid Build Coastguard Worker<verify> 59*6236dae4SAndroid Build Coastguard Worker<protocol> 60*6236dae4SAndroid Build Coastguard Worker</protocol> 61*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/curl%TESTNUMBER.out"> 62*6236dae4SAndroid Build Coastguard WorkerHTTP/1.0 200 OK 63*6236dae4SAndroid Build Coastguard WorkerContent-type: text/html 64*6236dae4SAndroid Build Coastguard Worker 65*6236dae4SAndroid Build Coastguard WorkerFINE 66*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl-test-suite 67*6236dae4SAndroid Build Coastguard WorkerAccept: */* 68*6236dae4SAndroid Build Coastguard Worker 69*6236dae4SAndroid Build Coastguard Worker</file> 70*6236dae4SAndroid Build Coastguard Worker<stripfile> 71*6236dae4SAndroid Build Coastguard Workers/^<p>Connected as user 'jsmith'.*/FINE/ 72*6236dae4SAndroid Build Coastguard Workers/Protocol version:.*[0-9]// 73*6236dae4SAndroid Build Coastguard Workers/GNUTLS/GnuTLS/ 74*6236dae4SAndroid Build Coastguard Workers/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/ 75*6236dae4SAndroid Build Coastguard Workers/^<.*\n// 76*6236dae4SAndroid Build Coastguard Workers/^\n// 77*6236dae4SAndroid Build Coastguard Worker</stripfile> 78*6236dae4SAndroid Build Coastguard Worker</verify> 79*6236dae4SAndroid Build Coastguard Worker 80*6236dae4SAndroid Build Coastguard Worker</testcase> 81