From 5770e1673a93e2437fe8df112950714f00cf161f Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Sat, 30 Dec 2023 03:47:10 +0100 Subject: [PATCH] refactored zap.Tls --- examples/https/https.zig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/https/https.zig b/examples/https/https.zig index 668d9b4..d6e4000 100644 --- a/examples/https/https.zig +++ b/examples/https/https.zig @@ -44,12 +44,11 @@ pub fn main() !void { help_and_exit(KEY_FILE, err); }; - const tls = try zap.Tls.init( - "localhost:4443", - CERT_FILE, - KEY_FILE, - null, // key file is not password-protected - ); + const tls = try zap.Tls.init(.{ + .server_name = "localhost:4443", + .public_certificate_file = CERT_FILE, + .private_key_file = KEY_FILE, + }); defer tls.deinit(); var listener = zap.SimpleHttpListener.init(.{