]> granicus.if.org Git - curl/commitdiff
curl_setup.h: error out on CURL_WANTS_CA_BUNDLE_ENV use
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Jun 2017 09:11:15 +0000 (11:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Jun 2017 09:11:39 +0000 (11:11 +0200)
... to make it really apparent if there's any user using this on purpose.

Suggested-by: Jay Satiro
Closes #1542

lib/curl_setup.h

index 369b953d26cd2e82526d4f3ea19cd374242094e8..eb4f038ddc259c125990a0623487a9d93705ae11 100644 (file)
@@ -640,6 +640,10 @@ int netware_init(void);
 #endif
 #endif
 
+#ifdef CURL_WANTS_CA_BUNDLE_ENV
+#error "No longer supported. Set CURLOPT_CAINFO at runtime instead."
+#endif
+
 /*
  * Provide a mechanism to silence picky compilers, such as gcc 4.6+.
  * Parameters should of course normally not be unused, but for example when