Skip to content

Commit 3a590c7

Browse files
authored
fix: pass address of ca blob to setopt (#19)
As per https://curl.se/libcurl/c/CURLOPT_CAINFO_BLOB.html For some reason this was working completely fine when I ran on macOS, but then I tried running the same thing on linux and would always get return code 43 (bad arg).
1 parent 7fc8136 commit 3a590c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Easy.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ pub fn setCommonOpts(self: Self) !void {
465465
.len = bundle.items.len,
466466
.flags = c.CURL_BLOB_NOCOPY,
467467
};
468-
try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_CAINFO_BLOB, blob));
468+
try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_CAINFO_BLOB, &blob));
469469
}
470470
try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_TIMEOUT_MS, self.timeout_ms));
471471
try checkCode(c.curl_easy_setopt(self.handle, c.CURLOPT_USERAGENT, self.user_agent.ptr));

0 commit comments

Comments
 (0)