aboutsummaryrefslogtreecommitdiff
path: root/src/http/async_socket.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/async_socket.zig')
-rw-r--r--src/http/async_socket.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/http/async_socket.zig b/src/http/async_socket.zig
index e5274df76..062a645de 100644
--- a/src/http/async_socket.zig
+++ b/src/http/async_socket.zig
@@ -603,6 +603,15 @@ pub const SSL = struct {
this.completed_connect = true;
this.next_handshake_state = .none;
this.doPeek();
+ if (extremely_verbose) {
+ const version = std.mem.span(boring.SSL_get_version(this.ssl));
+ var hostname = std.mem.span(std.mem.sliceTo(&this.hostname, 0));
+ Output.prettyErrorln("[{s}] Handshake complete.\n[{s}] TLS Version: {s}", .{
+ hostname,
+ hostname,
+ version,
+ });
+ }
}
fn doPeek(this: *SSL) void {