234
234
int cmd_authenticate(struct imap_client *client, struct imap_arg *args)
238
238
/* we want only one argument: authentication mechanism name */
239
239
if (args[0].type != IMAP_ARG_ATOM && args[0].type != IMAP_ARG_STRING)
244
249
mech_name = IMAP_ARG_STR(&args[0]);
249
sasl_server_auth_begin(&client->common, "IMAP", mech_name, NULL,
254
sasl_server_auth_begin(&client->common, "IMAP", mech_name,
251
256
if (!client->common.authenticating)