curl-curl/tests/data/test305
Daniel Stenberg 88024c6d39
tool_getparam: verify that a file exists for some options
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
2025-11-18 11:37:08 +01:00

36 lines
474 B
Plaintext

<testcase>
<info>
<keywords>
HTTPS
HTTP GET
FAILURE
</keywords>
</info>
# Client-side
<client>
<features>
SSL
</features>
<server>
https
</server>
<name>
insecure HTTPS without permission
</name>
<command>
https://%HOSTIP:%HTTPSPORT/want/%TESTNUMBER --cacert "%LOGDIR/cacert" --no-ca-native
</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>