aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig5
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;
}