mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
verify_buffer is not expected to be sentinel-terminated
This commit is contained in:
parent
9831dc9e0c
commit
f276bb107e
@ -569,7 +569,7 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In
|
||||
try hsd.ensure(sig_len);
|
||||
const encoded_sig = hsd.slice(sig_len);
|
||||
const max_digest_len = 64;
|
||||
var verify_buffer =
|
||||
var verify_buffer: [64 + 34 + max_digest_len]u8 =
|
||||
([1]u8{0x20} ** 64) ++
|
||||
"TLS 1.3, server CertificateVerify\x00".* ++
|
||||
@as([max_digest_len]u8, undefined);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user