# include "config.h"
#endif
-#include "lib/mem.h"
-#include "lib/intl.h"
+#include <lib-lib/mem.h>
+
+#include <lib-lib/macros.h>
+#include <lib-lib/ascii.h>
#include "lib/debug.h"
#include "mutt.h"
#endif
{imap_auth_login, "login"},
- {NULL}
+ {NULL, NULL}
};
/* imap_authenticate: Attempt to authenticate using either user-specified
if (ImapAuthenticators && *ImapAuthenticators) {
/* Try user-specified list of authentication methods */
- methods = safe_strdup (ImapAuthenticators);
+ methods = m_strdup(ImapAuthenticators);
for (method = methods; method; method = delim) {
delim = strchr (method, ':');
!ascii_strcasecmp (authenticator->method, method))
if ((r = authenticator->authenticate (idata, method)) !=
IMAP_AUTH_UNAVAIL) {
- FREE (&methods);
+ p_delete(&methods);
return r;
}
}
}
- FREE (&methods);
+ p_delete(&methods);
}
else {
/* Fall back to default: any authenticator */