diff options
author | Dustin Sallings <dustin@spy.net> | 2009-10-23 23:23:44 -0700 |
---|---|---|
committer | Trond Norbye <Trond.Norbye@sun.com> | 2009-10-25 21:19:25 +0100 |
commit | 3705435b522c70aa31cf5636dfa01b33e85629a3 (patch) | |
tree | cdcad0f69345402c17ef0ed753e4221ba82a934c /sasl_defs.h | |
parent | dd11bde873f965fc85363afd6eac39635e3a3b2c (diff) | |
download | memcached-3705435b522c70aa31cf5636dfa01b33e85629a3.tar.gz |
Enforce some hard limits on SASL mechanism length.
Diffstat (limited to 'sasl_defs.h')
-rw-r--r-- | sasl_defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sasl_defs.h b/sasl_defs.h index 39c3cbf..65f8d80 100644 --- a/sasl_defs.h +++ b/sasl_defs.h @@ -1,6 +1,9 @@ #ifndef SASL_DEFS_H #define SASL_DEFS_H 1 +// Longest one I could find was ``9798-U-RSA-SHA1-ENC'' +#define MAX_SASL_MECH_LEN 32 + #if defined(HAVE_SASL_SASL_H) && defined(ENABLE_SASL) #include <sasl/sasl.h> |