diff options
author | Martin Ashby <martin@ashbysoft.com> | 2023-09-23 07:32:30 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2023-09-23 07:32:30 +0100 |
commit | c3c45287396569a96107c9b1413ac181f7197a6e (patch) | |
tree | 34edebc88e5bb4668023d562bc094de14b205841 /src/main.zig | |
parent | 6202dd351c83e9e54bffdbff844414b4dd763eba (diff) | |
download | pgz-c3c45287396569a96107c9b1413ac181f7197a6e.tar.gz pgz-c3c45287396569a96107c9b1413ac181f7197a6e.tar.bz2 pgz-c3c45287396569a96107c9b1413ac181f7197a6e.tar.xz pgz-c3c45287396569a96107c9b1413ac181f7197a6e.zip |
Add password_message
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |