X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fdefines.h;h=cffbfadfa10cdb8ecca525c8d1c787bd650ee71c;hp=3850b5810a0c8ad67e379339207bfe45ada45b97;hb=3ab00e3a11acfd22741e58aa409bb2026e0665ba;hpb=68cb1a8c2e507e7c99f787fab3540b904cfa1cc1 diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h index 3850b581..cffbfadf 100644 --- a/src/ngircd/defines.h +++ b/src/ngircd/defines.h @@ -50,7 +50,6 @@ /** Max. length of random salt */ #define RANDOM_SALT_LEN 32 - /* Size of structures */ /** Max. count of configurable servers. */ @@ -99,7 +98,7 @@ #define CLIENT_NICK_LEN 32 /** Max. password length (including NULL). */ -#define CLIENT_PASS_LEN 21 +#define CLIENT_PASS_LEN 65 /** Max. length of user name ("login"; incl. NULL), RFC 2812, section 1.2.1. */ #ifndef STRICT_RFC @@ -114,6 +113,9 @@ /** Max. host name length (including NULL). */ #define CLIENT_HOST_LEN 64 +/** Max. mask lenght (including NULL). */ +#define MASK_LEN (2 * CLIENT_HOST_LEN) + /** Max. length of all client modes (including NULL). */ #define CLIENT_MODE_LEN 21