xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | POP3 |
| 5 | STARTTLS |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <servercmd> |
| 13 | CAPA STLS USER |
| 14 | REPLY STLS -ERR currently unavailable\r\n+OK user accepted\r\n+OK authenticated |
| 15 | REPLY PASS -ERR Authentication credentials invalid |
| 16 | </servercmd> |
| 17 | <data nocheck="yes"> |
| 18 | From: me@somewhere |
| 19 | To: fake@nowhere |
| 20 | |
| 21 | body |
| 22 | |
| 23 | -- |
| 24 | yours sincerely |
| 25 | </data> |
| 26 | </reply> |
| 27 | |
| 28 | # |
| 29 | # Client-side |
| 30 | <client> |
| 31 | <features> |
| 32 | SSL |
| 33 | </features> |
| 34 | <server> |
| 35 | pop3 |
| 36 | </server> |
| 37 | <name> |
| 38 | POP3 STARTTLS pipelined server response |
| 39 | </name> |
| 40 | <command> |
| 41 | pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --ssl |
| 42 | </command> |
| 43 | </client> |
| 44 | |
| 45 | # |
| 46 | # Verify data after the test has been "shot" |
| 47 | <verify> |
| 48 | # 8 is CURLE_WEIRD_SERVER_REPLY |
| 49 | <errorcode> |
| 50 | 8 |
| 51 | </errorcode> |
| 52 | <protocol> |
| 53 | CAPA
|
| 54 | STLS
|
| 55 | </protocol> |
| 56 | </verify> |
| 57 | </testcase> |