# std.crypto.Certificate.Bundle.macos: rework · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d603121dc355fee44b86a7fdf3666dce6e3ab677)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d603121dc355fee44b86a7fdf3666dce6e3ab677

Requested commit: d603121dc355fee44b86a7fdf3666dce6e3ab677

Commit: d603121dc355fee44b86a7fdf3666dce6e3ab677

Tree: c4821a2aaa16861003b419182fca53b2c9d2ff52

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.crypto.Certificate.Bundle.macos: rework

- use ArrayList strategically to reduce allocations
- use a BufferedReader to avoid unnecessary memcpy of the certs
- use for loops
- skip certs with invalid magic instead of asserting

```

## Parents

- [01b580e75d2d57e315545f63cbea51ebdaaa54d4](https://git.cafe/gitcafe/zig/commit/01b580e75d2d57e315545f63cbea51ebdaaa54d4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d603121dc355fee44b86a7fdf3666dce6e3ab677?format=markdown)
