diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-29 21:11:16 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-29 21:11:16 +0300 |
commit | 63611932ebae93620386b26cfa82f7c4552b22ff (patch) | |
tree | 57c065bebf3ba53857dbed80e48cf67cd7e63038 /src/clientserver.h | |
parent | 99c2ac0125f9bbae0a4b06e6e7145f76f4dfbbf4 (diff) | |
download | minetest-63611932ebae93620386b26cfa82f7c4552b22ff.tar.gz minetest-63611932ebae93620386b26cfa82f7c4552b22ff.tar.bz2 minetest-63611932ebae93620386b26cfa82f7c4552b22ff.zip |
player passwords and privileges in world/auth.txt
--HG--
extra : rebase_source : 7260636295d9068fbeeddf4143c89f2b8a91446c
Diffstat (limited to 'src/clientserver.h')
-rw-r--r-- | src/clientserver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/clientserver.h b/src/clientserver.h index 256aed362..7972762c0 100644 --- a/src/clientserver.h +++ b/src/clientserver.h @@ -24,6 +24,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #define PROTOCOL_ID 0x4f457403 +#define PASSWORD_SIZE 28 // Maximum password length. Allows for + // base64-encoded SHA-1 (27+\0). + enum ToClientCommand { TOCLIENT_INIT = 0x10, @@ -154,6 +157,8 @@ enum ToClientCommand TOCLIENT_ACCESS_DENIED = 0x35, /* u16 command + u16 reason_length + wstring reason */ }; |