# include "config.h"
#endif
+#include "lib/mem.h"
+#include "lib/intl.h"
+#include "lib/debug.h"
+
#include "mutt.h"
+#include "ascii.h"
#include "imap_private.h"
#include "auth.h"
if (ImapAuthenticators && *ImapAuthenticators) {
/* Try user-specified list of authentication methods */
- methods = safe_strdup (ImapAuthenticators);
+ methods = str_dup (ImapAuthenticators);
for (method = methods; method; method = delim) {
delim = strchr (method, ':');
if (!method[0])
continue;
- dprint (2,
- (debugfile, "imap_authenticate: Trying method %s\n", method));
+ debug_print (2, ("Trying method %s\n", method));
authenticator = imap_authenticators;
while (authenticator->authenticate) {
!ascii_strcasecmp (authenticator->method, method))
if ((r = authenticator->authenticate (idata, method)) !=
IMAP_AUTH_UNAVAIL) {
- FREE (&methods);
+ mem_free (&methods);
return r;
}
}
}
- FREE (&methods);
+ mem_free (&methods);
}
else {
/* Fall back to default: any authenticator */
- dprint (2,
- (debugfile, "imap_authenticate: Using any available method.\n"));
+ debug_print (2, ("Using any available method.\n"));
authenticator = imap_authenticators;
while (authenticator->authenticate) {