iguanaTLS icon indicating copy to clipboard operation
iguanaTLS copied to clipboard

Minimal, experimental TLS 1.2 implementation in Zig

Results 11 iguanaTLS issues
Sort by recently updated
recently updated
newest added

Some more fixups for Zig 0.9.1 on top of some of @nektro's changes from https://github.com/alexnask/iguanaTLS/pull/27 Most of these additional changes relate to building tests. However, when attempting to build tests...

``` ❯ zig build test test "HTTPS request on wikipedia main page"... FAIL (CertificateVerificationFailed) /usr/lib/zig/std/heap/general_purpose_allocator.zig:606:13: 0x21ede9 in std.heap.general_purpose_allocator.GeneralPurposeAllocator((struct std.heap.general_purpose_allocator.Config constant)).resize (test) return error.OutOfMemory; ```

get iguana compiling with latest zig master, changes should be backward compatible

Recent Zig versions flag an error here; a simple fix is to declare a local constant to carry the `len` value. Fix: #24

``` /home/snuc/dev/zigmod/.zigmod/deps/git/github.com/alexnask/iguanaTLS/src/main.zig:1607:24: error: mutable 'seed' not accessible from here a1: *[32 + seed.len]u8, ^ /home/snuc/dev/zigmod/.zigmod/deps/git/github.com/alexnask/iguanaTLS/src/main.zig:1577:13: note: declared mutable here var seed: [77]u8 = undefined; ^ /home/snuc/dev/zigmod/.zigmod/deps/git/github.com/alexnask/iguanaTLS/src/main.zig:1605:35: note: crosses namespace boundary...

Hi @alexnask ! I use iguanaTLS for my http client ([requestz](https://github.com/ducdetronquito/requestz)) and it works like a charm ! But yesterday, someone figured out he could not request a specific HTTP...

With [this](https://paste.sr.ht/blob/d2feecf116629f3e57bfe21bfddd85fe74ef6364) PEM file and the following code, I get a MalformedDER error. ```zig var reader = std.io.fixedBufferStream( @embedFile("/etc/ssl/certs/ca-certificates.crt"), ).reader(); const trust = try tls.x509.CertificateChain.from_pem(alloc, reader); ``` Tell me if...

I am trying to connect to CockroachDB secure instance using `IguanaTLS`, but cant manage to do it. If I use default cert validation, code fails with `error: CertificateVerificationFailed` If using...

Hey here is some of that certs code I mentioned way back, I haven't hooked it up to anything yet, just kindof wanted to show you and open a dialog...