From 1429202de38ad7badf072e4e24db8e0bebbc5fa0 Mon Sep 17 00:00:00 2001 From: Halil Durak Date: Wed, 15 Jul 2026 15:21:37 +0300 Subject: [PATCH] update `createX509Store` in all call sites --- src/Updater.zig | 2 +- src/network/Network.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Updater.zig b/src/Updater.zig index 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.zig index 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.