aboutsummaryrefslogtreecommitdiff
path: root/lib/std/std.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-11-08 02:01:52 -0500
committerGitHub <noreply@github.com>2024-11-08 02:01:52 -0500
commite5f5229fd6f9d0fe684ab32cce8f2b18e02c115b (patch)
treec9fb5a5324d741042de3c581d8719bb2b27c889a /lib/std/std.zig
parentee9f00d673f2bccddc2751c328758a2820d2bb70 (diff)
parent9373abf7f77c37094f9ba6ca68287d8a06ebafa0 (diff)
downloadzig-e5f5229fd6f9d0fe684ab32cce8f2b18e02c115b.tar.gz
zig-e5f5229fd6f9d0fe684ab32cce8f2b18e02c115b.zip
Merge pull request #21872 from jacobly0/tlsv1.2
std.crypto.tls: implement TLSv1.2
Diffstat (limited to 'lib/std/std.zig')
-rw-r--r--lib/std/std.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/std.zig b/lib/std/std.zig
index 6dbb4c0843..cc61111746 100644
--- a/lib/std/std.zig
+++ b/lib/std/std.zig
@@ -146,6 +146,11 @@ pub const Options = struct {
/// make a HTTPS connection.
http_disable_tls: bool = false,
+ /// This enables `std.http.Client` to log ssl secrets to the file specified by the SSLKEYLOGFILE
+ /// env var. Creating such a log file allows other programs with access to that file to decrypt
+ /// all `std.http.Client` traffic made by this program.
+ http_enable_ssl_key_log_file: bool = @import("builtin").mode == .Debug,
+
side_channels_mitigations: crypto.SideChannelsMitigations = crypto.default_side_channels_mitigations,
};