Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test821
1 <testcase>
2 <info>
3 <keywords>
4 IMAP
5 SASL
6 SASL AUTH CRAM-MD5
7 RFC2195
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 AUTH CRAM-MD5
16 REPLY AUTHENTICATE + PDE5NzIuOTg3NjU0MzIxQGN1cmw+
17 REPLY dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg== A002 OK AUTHENTICATE completed
18 </servercmd>
19 <data>
20 From: me@somewhere\r
21 To: fake@nowhere\r
22 \r
23 body\r
24 \r
25 --\r
26   yours sincerely\r
27 </data>
28 </reply>
29
30 #
31 # Client-side
32 <client>
33 <server>
34 imap
35 </server>
36 <features>
37 crypto
38 </features>
39  <name>
40 IMAP CRAM-MD5 authentication
41  </name>
42  <command>
43 'imap://%HOSTIP:%IMAPPORT/821/;UID=1' -u user:secret
44 </command>
45 </client>
46
47 #
48 # Verify data after the test has been "shot"
49 <verify>
50 <protocol>
51 A001 CAPABILITY\r
52 A002 AUTHENTICATE CRAM-MD5\r
53 dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg==\r
54 A003 SELECT 821\r
55 A004 FETCH 1 BODY[]\r
56 A005 LOGOUT\r
57 </protocol>
58 </verify>
59 </testcase>