Skip to content

Commit d1d72af

Browse files
authored
Fix minimum curl version for CURLOPT_CAINFO_BLOB (#1453)
This MR fixes compilation on Rocky Linux 9 (and thus likely also on RHEL9), which uses curl-7.76 and thus - as noted on https://curl.se/libcurl/c/CURLOPT_CAINFO_BLOB.html - does not yet have support for CURLOPT_CAINFO_BLOB. Relates-To: OLPSUP-27800 Signed-off-by: Robert Buchholz <robert.buchholz@here.com>
1 parent 370ce8d commit d1d72af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

olp-cpp-sdk-core/src/http/curl/NetworkCurl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
#endif
5050
#endif
5151

52-
#if CURL_AT_LEAST_VERSION(7, 71, 0)
52+
// CURLOPT_CAINFO_BLOB has become available only in curl-7.77
53+
// cf. https://curl.se/libcurl/c/CURLOPT_CAINFO_BLOB.html,
54+
#if CURL_AT_LEAST_VERSION(7, 77, 0)
5355
#define OLP_SDK_CURL_HAS_SUPPORT_SSL_BLOBS
5456
#endif
5557

0 commit comments

Comments
 (0)