#include "strescape.h"
#include "str-sanitize.h"
#include "master-interface.h"
+#include "auth-sasl.h"
#include "auth-penalty.h"
#include "auth-request.h"
#include "auth-token.h"
e_error(handler->conn->conn.event,
"BUG: Authentication client %u requested invalid "
"authentication mechanism %s (DOVECOT-TOKEN required)",
- handler->client_pid, str_sanitize(args[1], MAX_MECH_NAME_LEN));
+ handler->client_pid,
+ str_sanitize(args[1], AUTH_SASL_MAX_MECH_NAME_LEN));
return -1;
}
} else {
e_error(handler->conn->conn.event,
"BUG: Authentication client %u requested unsupported "
"authentication mechanism %s", handler->client_pid,
- str_sanitize(args[1], MAX_MECH_NAME_LEN));
+ str_sanitize(args[1], AUTH_SASL_MAX_MECH_NAME_LEN));
return -1;
}
}
#ifndef AUTH_SASL_H
#define AUTH_SASL_H
+/* Used only for string sanitization. */
+#define AUTH_SASL_MAX_MECH_NAME_LEN 64
+
struct auth_sasl_mech_module {
const char *mech_name;
};
#include "auth-request.h"
#include "auth-request-handler.h"
-/* Used only for string sanitization. */
-#define MAX_MECH_NAME_LEN 64
-
enum mech_passdb_need {
/* Mechanism doesn't need a passdb at all */
MECH_PASSDB_NEED_NOTHING = 0,