summaryrefslogtreecommitdiff
path: root/sasl_defs.h
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-10-23 23:23:44 -0700
committerTrond Norbye <Trond.Norbye@sun.com>2009-10-25 21:19:25 +0100
commit3705435b522c70aa31cf5636dfa01b33e85629a3 (patch)
treecdcad0f69345402c17ef0ed753e4221ba82a934c /sasl_defs.h
parentdd11bde873f965fc85363afd6eac39635e3a3b2c (diff)
downloadmemcached-3705435b522c70aa31cf5636dfa01b33e85629a3.tar.gz
Enforce some hard limits on SASL mechanism length.
Diffstat (limited to 'sasl_defs.h')
-rw-r--r--sasl_defs.h3
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>