Skip to content

Commit 9cce3ac

Browse files
committed
libfbdoc: enable native CA by default if no custom CA file specified
1 parent 52a40b1 commit 9cce3ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/libfbdoc/CHttpStream.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ namespace fb
164164

165165
if( ca_file ) then
166166
ret = curl_easy_setopt( curl, CURLOPT_CAINFO, ca_file )
167+
else
168+
curl_easy_setopt( curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA )
167169
end if
168170

169171
'' This option should not be needed. It wasn't in earlier version
@@ -302,6 +304,8 @@ namespace fb
302304

303305
if( ca_file ) then
304306
curl_easy_setopt( curl, CURLOPT_CAINFO, ca_file )
307+
else
308+
curl_easy_setopt( curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA )
305309
end if
306310

307311
ret = curl_easy_perform( curl )

0 commit comments

Comments
 (0)