This improves separation of concerns and clarity of the code.
client->auth_client_continue_pending = FALSE;
client_set_auth_waiting(client);
- auth_client_request_continue(client->auth_request, response);
+ sasl_server_auth_continue(client, response);
}
void client_auth_abort(struct client *client)
call_client_callback(client, reply, reason, NULL);
}
+void sasl_server_auth_continue(struct client *client, const char *response)
+{
+ auth_client_request_continue(client->auth_request, response);
+}
+
void sasl_server_auth_failed(struct client *client, const char *reason,
const char *code)
{
enum sasl_server_auth_flags flags,
const char *initial_resp_base64,
sasl_server_callback_t *callback);
+void sasl_server_auth_continue(struct client *client, const char *response);
void sasl_server_auth_failed(struct client *client, const char *reason,
const char *code) ATTR_NULL(3);
/* Called when client asks for SASL authentication to be aborted by sending