From 6de756c9b1de34b7a1b1d6cd978ca75f3b1d719b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 26 Mar 2020 13:05:03 +0100 Subject: version: add 'cainfo' and 'capath' to version info struct Suggested-by: Timothe Litt URL: https://curl.haxx.se/mail/lib-2020-03/0090.html Reviewed-by: Jay Satiro Closes #5150 --- lib/version.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/version.c b/lib/version.c index c7fe42a07..ed5592a26 100644 --- a/lib/version.c +++ b/lib/version.c @@ -404,7 +404,17 @@ static curl_version_info_data version_info = { NULL, /* brotli version */ 0, /* nghttp2 version number */ NULL, /* nghttp2 version string */ - NULL /* quic library string */ + NULL, /* quic library string */ +#ifdef CURL_CA_BUNDLE + CURL_CA_BUNDLE, /* cainfo */ +#else + NULL, +#endif +#ifdef CURL_CA_PATH + CURL_CA_PATH /* capath */ +#else + NULL +#endif }; curl_version_info_data *curl_version_info(CURLversion stamp) -- cgit v1.2.3