mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-07-30 17:25:58 -04:00
update createX509Store in all call sites
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user