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