Lightpanda: the headless browser designed for AI and automation
update `createX509Store` in all call sites
Halil Durak1429202de38a
diff --git a/src/Updater.zig b/src/Updater.zigindex 97bb50a2a..591b1b73b 100644--- a/src/Updater.zig+++ b/src/Updater.zig@@ -38,7 +38,7 @@ config: *const Config,pub fn init(allocator: Allocator, config: *const Config) !Updater {Network.globalInit(allocator);errdefer Network.globalDeinit();- const x509_store = try Network.createX509Store(allocator);+ const x509_store = try Network.createX509Store(allocator, config);return .{.x509_store = x509_store,diff --git a/src/network/Network.zig b/src/network/Network.zigindex f862d5730..09d17ed29 100644--- a/src/network/Network.zig+++ b/src/network/Network.zig@@ -734,7 +734,7 @@ const CreateX509StoreError = std.crypto.Certificate.Bundle.RescanError || error{/// NEVER give full ownership of store to `SSL_CTX`, always rely on ref counting./// Allocations made through passed `allocator` are freed before this function returns.-fn createX509Store(allocator: Allocator, config: *const Config) CreateX509StoreError!*crypto.X509_STORE {+pub fn createX509Store(allocator: Allocator, config: *const Config) CreateX509StoreError!*crypto.X509_STORE {const store = crypto.X509_STORE_new() orelse return error.FailedToCreateX509Store;errdefer crypto.X509_STORE_free(store);// Report back if no certificates loaded.