From c3c45287396569a96107c9b1413ac181f7197a6e Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 23 Sep 2023 07:32:30 +0100 Subject: Add password_message --- src/main.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 4bed468..24e86c4 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2,6 +2,8 @@ const std = @import("std"); const testing = std.testing; const StartupMessage = @import("startup_message.zig"); const AuthenticationOk = @import("authentication_ok.zig"); +const AuthenticationCleartextPassword = @import("authentication_cleartext_password.zig"); +const PasswordMessage = @import("password_message.zig"); pub const ProtocolError = error{ InvalidProtocolVersion, @@ -16,6 +18,7 @@ pub const ClientError = error{ pub const AuthType = enum(u32) { AuthTypeOk = 0, + AuthTypeCleartextPassword = 3, }; // Fallible version of enumFromInt @@ -36,4 +39,6 @@ pub fn enum_from_int(comptime e: type, i: anytype) ?e { test { _ = StartupMessage; _ = AuthenticationOk; + _ = AuthenticationCleartextPassword; + _ = PasswordMessage; } -- cgit v1.2.3-ZIG