/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dsasl-client-private.h"
struct external_dsasl_client {
bool output_sent;
};
static int
const char **error_r)
{
(struct external_dsasl_client *)_client;
if (!client->output_sent) {
if (input_len > 0) {
*error_r = "Server sent non-empty initial response";
return -1;
}
} else {
*error_r = "Server didn't finish authentication";
return -1;
}
return 0;
}
static int
const char **error_r ATTR_UNUSED)
{
(struct external_dsasl_client *)_client;
const char *username;
else
username = "";
return 0;
}
.name = "EXTERNAL",
.struct_size = sizeof(struct external_dsasl_client),
};