Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test934
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SASL
6 SASL AUTH DIGEST-MD5
7 SASL CANCELLATION
8 RFC2831
9 RFC4954
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <servercmd>
17 AUTH DIGEST-MD5
18 REPLY AUTH 334 Rubbish
19 REPLY * 501 AUTH exchange cancelled by client
20 </servercmd>
21 </reply>
22
23 #
24 # Client-side
25 <client>
26 <server>
27 smtp
28 </server>
29 <features>
30 !SSPI
31 debug
32 crypto
33 </features>
34  <name>
35 SMTP DIGEST-MD5 graceful cancellation
36  </name>
37  <command>
38 smtp://%HOSTIP:%SMTPPORT/934 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
39 </command>
40 </client>
41
42 #
43 # Verify data after the test has been "shot"
44 <verify>
45 # 67 - CURLE_LOGIN_DENIED
46 <errorcode>
47 67
48 </errorcode>
49 #
50 # The multi interface considers a broken "CONNECT" as a prematurely broken
51 # transfer and such a connection will not get a "QUIT"
52 <protocol>
53 EHLO 934\r
54 AUTH DIGEST-MD5\r
55 *\r
56 </protocol>
57 </verify>
58 </testcase>