0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley 940d368e7e std.crypto.tls.Client: fix the read function
The read function has been renamed to readAdvanced since it has slightly
different semantics than typical read functions, specifically regarding
the end-of-file. A higher level read function is implemented on top.

Now, API users may pass small buffers to the read function and
everything will work fine. This is done by re-decrypting the same
ciphertext record with each call to read() until the record is finished
being transmitted.

If the buffer supplied to read() is large enough, then any given
ciphertext record will only be decrypted once, since it decrypts
directly to the read() buffer and therefore does not need any memcpy. On
the other hand, if the buffer supplied to read() is small, then the
ciphertext is decrypted into a stack buffer, a subset is copied to the
read() buffer, and then the entire ciphertext record is saved for the
next call to read().
History 2023-01-02 16:57:16 -07:00
..
compiler_rt compiler_rt: skip "__udivei4/__umodei4" on cbe due to missing > 128 bit integer support 2023-01-02 13:55:45 -07:00
docs autodoc: Removed BoundFn from indexTypeKinds in main.js 2022-12-11 14:29:48 +01:00
include C backend: improve ergonomics of zig.h a little bit 2022-11-13 16:50:16 -07:00
init-exe init-exe template: add flushing to the buffered writer 2022-08-04 21:12:42 +02:00
init-lib flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
libc mingw: add missing vscprintf.c file 2022-12-28 12:33:55 -07:00
libcxx update libcxx to LLVM 15.0.3 2022-10-18 10:18:09 -07:00
libcxxabi update libcxxabi to LLVM 15 2022-08-04 18:02:01 -07:00
libunwind update libunwind to LLVM 15 2022-08-04 18:09:10 -07:00
std std.crypto.tls.Client: fix the read function 2023-01-02 16:57:16 -07:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig remove -fstage1 option 2022-12-06 12:15:04 -07:00
c.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
compiler_rt.zig compiler-rt: implement __udivei4 and __umodei4 (#14023) 2022-12-22 16:29:19 -05:00
ssp.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
test_runner.zig stage2 AArch64: misc fixes, enable printing in test runner 2022-11-01 20:44:18 +01:00
zig.h cbe: fixups for -Wstrict-prototypes 2023-01-02 13:56:32 -07:00