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