A set of certificates. Typically pre-installed on every operating system, these are “Certificate Authorities” used to validate SSL certificates. This data structure stores certificates in DER-encoded form, all of them concatenated together in the bytes array. The map field contains an index from the DER-encoded subject name to the index of the containing certificate within bytes.

Fields

map: field_call = .{ },

The key is the contents slice of the subject.

bytes: field_call = .{ },

Functions

fn addCertsFromDir(cb: *Bundle, gpa: Allocator, iterable_dir: fs.IterableDir) AddCertsFromDirError!void

No documentation provided.

fn addCertsFromDirPath(cb: *Bundle, gpa: Allocator, dir: fs.Dir, sub_dir_path: []const u8) AddCertsFromDirPathError!void

No documentation provided.

fn addCertsFromDirPathAbsolute(cb: *Bundle, gpa: Allocator, abs_dir_path: []const u8) AddCertsFromDirPathError!void

No documentation provided.

fn addCertsFromFile(cb: *Bundle, gpa: Allocator, file: fs.File) AddCertsFromFileError!void

No documentation provided.

fn addCertsFromFilePath(cb: *Bundle, gpa: Allocator, dir: fs.Dir, sub_file_path: []const u8) AddCertsFromFilePathError!void

No documentation provided.

fn addCertsFromFilePathAbsolute(cb: *Bundle, gpa: Allocator, abs_file_path: []const u8) AddCertsFromFilePathError!void

No documentation provided.

fn deinit(cb: *Bundle, gpa: Allocator) void

No documentation provided.

fn find(cb: Bundle, subject_name: []const u8) ?u32

The returned bytes become invalid after calling any of the rescan functions or …

The returned bytes become invalid after calling any of the rescan functions or add functions.

fn parseCert(cb: *Bundle, gpa: Allocator, decoded_start: u32, now_sec: i64) ParseCertError!void

No documentation provided.

fn rescan(cb: *Bundle, gpa: Allocator) RescanError!void

Clears the set of certificates and then scans the host operating system file sy…

Clears the set of certificates and then scans the host operating system file system standard locations for certificates. For operating systems that do not have standard CA installations to be found, this function clears the set of certificates.

fn verify(cb: Bundle, subject: Certificate.Parsed, now_sec: i64) VerifyError!void

No documentation provided.