It isn't documented in the CURLOPT_CAINFO option [1] that its
availability depends on the SSL engine. Also I have some other patches
from [2] I didn't hear back about.
gskit: Fix exclusive SSLv3 option
polarssl: Fix exclusive SSL protocol version options
SSL: Legacy support for SSLv3 or later
[1]: http://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html
[2]: http://curl.haxx.se/mail/lib-2015-01/0000.html
From 695cd1257dd427971cde2fd16bedcec0a8233157 Mon Sep 17 00:00:00 2001
From: Jay Satiro <[email protected]>
Date: Sun, 11 Jan 2015 00:10:05 -0500
Subject: [PATCH] opts: CURLOPT_CAINFO availability depends on SSL engine
---
docs/libcurl/opts/CURLOPT_CAINFO.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/libcurl/opts/CURLOPT_CAINFO.3
b/docs/libcurl/opts/CURLOPT_CAINFO.3
index cb7f47b..85c9ba3 100644
--- a/docs/libcurl/opts/CURLOPT_CAINFO.3
+++ b/docs/libcurl/opts/CURLOPT_CAINFO.3
@@ -47,7 +47,8 @@ All TLS based protocols: HTTPS, FTPS, IMAPS, POP3, SMTPS etc.
.SH EXAMPLE
TODO
.SH AVAILABILITY
-If built TLS enabled
+For SSL engines that don't support certificate files the CURLOPT_CAINFO option
+is ignored. Refer to http://curl.haxx.se/docs/ssl-compared.html
.SH RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
--
1.9.4.msysgit.2
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html