test680: verify rejection of malformatted .netrc quoted password

This commit is contained in:
Daniel Stenberg 2022-05-31 09:05:01 +02:00
parent 19f981b4ff
commit d1b376c035
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 38 additions and 1 deletions

View File

@ -95,7 +95,7 @@ test643 test645 test646 test647 test648 test649 test650 test651 \
test652 test653 test654 test655 test656 test658 test659 test660 test661 \
test662 test663 test664 test665 test666 test667 test668 test669 \
test670 test671 test672 test673 test674 test675 test676 test677 test678 \
test679 \
test679 test680 \
\
test700 test701 test702 test703 test704 test705 test706 test707 test708 \
test709 test710 test711 test712 test713 test714 test715 test716 test717 \

37
tests/data/test680 Normal file
View File

@ -0,0 +1,37 @@
<testcase>
<info>
<keywords>
HTTP
netrc
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
none
</server>
<name>
netrc with quoted password but missing end quote
</name>
<command>
--netrc --netrc-file log/netrc%TESTNUMBER http://user1@http.example/
</command>
<file name="log/netrc%TESTNUMBER" >
machine %HOSTIP login user1 password "with spaces and \"\n\r\t\a
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
26
</errorcode>
</verify>
</testcase>