Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test932
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SASL
6 SASL AUTH CRAM-MD5
7 SASL CANCELLATION
8 RFC2195
9 RFC4954
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <servercmd>
17 AUTH CRAM-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 crypto
31 </features>
32  <name>
33 SMTP CRAM-MD5 graceful cancellation
34  </name>
35  <command>
36 smtp://%HOSTIP:%SMTPPORT/932 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
37 </command>
38 </client>
39
40 #
41 # Verify data after the test has been "shot"
42 <verify>
43 # 67 - CURLE_LOGIN_DENIED
44 <errorcode>
45 67
46 </errorcode>
47 #
48 # The multi interface considers a broken "CONNECT" as a prematurely broken
49 # transfer and such a connection will not get a "QUIT"
50 <protocol>
51 EHLO 932\r
52 AUTH CRAM-MD5\r
53 *\r
54 </protocol>
55 </verify>
56 </testcase>