mirror of
https://github.com/curl/curl.git
synced 2026-04-14 00:51:42 +08:00
Passing the option as-is to libcurl is fine, but checking that the file exists allows the tool to better provide a helpful message. This now done for the following options: --cacert, --crlfile, --knownhosts, --netrc-file, --proxy-cacert amd --proxy-crlfile Bonus: bail out properly on OOM errors in the --cert parser. Reported-by: Wesley Moore Fixes #19583 Closes #19585
36 lines
443 B
Plaintext
36 lines
443 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
FTPS
|
|
FAILURE
|
|
</keywords>
|
|
</info>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
SSL
|
|
</features>
|
|
<server>
|
|
ftps
|
|
</server>
|
|
<name>
|
|
FTPS with invalid cacert
|
|
</name>
|
|
<command>
|
|
--ftp-ssl-control --cacert "%LOGDIR/cacert" ftps://%HOSTIP:%FTPSPORT/
|
|
</command>
|
|
<file name="%LOGDIR/cacert">
|
|
made up content
|
|
</file>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
77,60
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|