update createX509Store in all call sites

This commit is contained in:
Halil Durak committed 2026-07-22 18:29:30 +03:00
1 parent 03cfdbe567
commit 1429202de3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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.