aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-13 21:59:01 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-01-02 16:57:15 -0700
commit920e5bc4ff4bdfee173768809e712f8004f7132d (patch)
treefb9d7a7d8c85ea9cb4b329b2b0fe9bff69859e83 /lib/std/net.zig
parentd2f5d0b1990a160aa1d648531ea5b1df7b2acdce (diff)
downloadzig-920e5bc4ff4bdfee173768809e712f8004f7132d.tar.gz
zig-920e5bc4ff4bdfee173768809e712f8004f7132d.zip
std.crypto.Tls: discard ChangeCipherSpec messages
The next step here is to decrypt encrypted records
Diffstat (limited to 'lib/std/net.zig')
-rw-r--r--lib/std/net.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig
index 8c8ab51a4a..a265fa69a9 100644
--- a/lib/std/net.zig
+++ b/lib/std/net.zig
@@ -1680,9 +1680,9 @@ pub const Stream = struct {
}
/// Returns the number of bytes read, calling the underlying read function
- /// multiple times until at least the buffer has at least `len` bytes
- /// filled. If the number read is less than `len` it means the stream
- /// reached the end. Reaching the end of the stream is not an error
+ /// the minimal number of times until at least the buffer has at least
+ /// `len` bytes filled. If the number read is less than `len` it means the
+ /// stream reached the end. Reaching the end of the stream is not an error
/// condition.
pub fn readAtLeast(s: Stream, buffer: []u8, len: usize) ReadError!usize {
var index: usize = 0;