File: test905

package info (click to toggle)
curl 8.19.0~rc2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 32,024 kB
  • sloc: ansic: 199,948; perl: 20,913; python: 10,362; sh: 6,684; makefile: 1,502; pascal: 240; cpp: 174
file content (58 lines) | stat: -rw-r--r-- 963 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
SMTP
SASL
SASL AUTH CRAM-MD5
RFC2195
RFC4954
</keywords>
</info>

# Server-side
<reply>
<servercmd>
AUTH CRAM-MD5
REPLY AUTH 334 %b64[%3c1972.987654321@curl%3e]b64%
REPLY %b64[user 7031725599fdbb5d412689aa323e3e0b]b64% 235 Authenticated
</servercmd>
</reply>

# Client-side
<client>
<server>
smtp
</server>
<features>
crypto
digest
</features>
<name>
SMTP CRAM-MD5 authentication
</name>
<stdin crlf="yes">
mail body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol crlf="yes">
EHLO %TESTNUMBER
AUTH CRAM-MD5
%b64[user 7031725599fdbb5d412689aa323e3e0b]b64%
MAIL FROM:%LTsender@example.com%GT
RCPT TO:%LTrecipient@example.com%GT
DATA
QUIT
</protocol>
<upload crlf="yes">
mail body
.
</upload>
</verify>
</testcase>