pub fn deinit(chain: *Chain) void
pub fn deinit(chain: *Chain) void { if (chain.primary) |primary| assert(crypt32.CertFreeCertificateContext(primary).toBool()); if (chain.store) |store| if (!crypt32.CertCloseStore(store, .{ .CHECK = std.debug.runtime_safety, }).toBool()) std.os.windows.unexpectedError(std.os.windows.GetLastError()) catch unreachable; chain.* = .empty; }