/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "buffer.h"
#include "iostream-ssl.h"
#include "master-service-private.h"
#include "master-service-settings.h"
#include "master-service-ssl-settings.h"
#include "master-service-ssl.h"
#include <unistd.h>
struct ssl_iostream **ssl_iostream_r,
const char **error_r)
{
*error_r = "Failed to initialize SSL context";
return -1;
}
}
{
}
{
const char *error;
if (service->ssl_ctx_initialized)
return;
/* must be called after master_service_init_finish() so that if
initialization fails we can close the SSL listeners */
/* SSL disabled, don't use it */
return;
}
}
&error) < 0) {
i_error("SSL context initialization failed, disabling SSL: %s",
error);
return;
}
}
{
}