zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit d86a8aedd5674819ec4af1bfc8a81b3fef91fd85 (tree)
parent 485f20a10ab489274b71b0d3106dcf81dbe3ac15
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Mon,  4 Nov 2024 22:43:31 -0500

std.crypto.tls: increase handshake buffer sizes

Diffstat:
Mlib/std/crypto/tls/Client.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/crypto/tls/Client.zig b/lib/std/crypto/tls/Client.zig @@ -256,8 +256,8 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In var main_cert_pub_key: CertificatePublicKey = undefined; const now_sec = std.time.timestamp(); - var cleartext_bufs: [2][8000]u8 = undefined; - var handshake_buffer: [8000]u8 = undefined; + var cleartext_bufs: [2][tls.max_ciphertext_inner_record_len]u8 = undefined; + var handshake_buffer: [tls.max_ciphertext_record_len]u8 = undefined; var d: tls.Decoder = .{ .buf = &handshake_buffer }; while (true) { try d.readAtLeastOurAmt(stream, tls.record_header_len);