cURL / Mailing Lists / curl-users / Single Mail

curl-users

Parsing in src/tool_parsecfg.c

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Thu, 5 Dec 2013 16:31:55 +0100

With the recent change to src/tool_parsecfg.c. Ref:
  https://github.com/bagder/curl/commit/0db811b69b2d5a18f8122d94db4e520909fd992b

the _curlrc parsing has become very strict. This worked fine for me for years:
  --cacert = g:\MingW32\src\inet\curl\.Net\ca-bundle.crt
  --random-file = e:\net\lynx28\rand.fil
  --crlfile = g:\MingW32\src\inet\Crypto\OpenSSL-1.1.0\test\testcrl.pem

According to doc/curl.1, a ':' could work;
  --crlfile: g:\MingW32\src\inet\Crypto\OpenSSL-1.1.0\test\testcrl.pem

it doesn't seem to. Here's the warning:
  PARAM: "g:\MingW32\src\inet\Crypto\OpenSSL-1.1.0\test\testcrl.pem"
  Warning: f:\Documents and Settings\Gisle Vanem\ProgramData\_curlrc:6: warning:
  Warning: '--crlfile:' had unsupported trailing garbage

 But this works:
  --crlfile g:\MingW32\src\inet\Crypto\OpenSSL-1.1.0\test\testcrl.pem

(no ':')

I discovered the problem when getting "curl: (43) A libcurl function was given a
bad argument". It would be nice to know where and what argument was wrong.
Adding '-DDEBUG_CONFIG' to my CFLAGS revealed the problem.

--gv

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-05