Commit de774537 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #200 from ejohnstown/master

Allow no SSL_CERTIFICATE when using init_ssl callback.
parents 21786eec 61f5f0b7
......@@ -4741,8 +4741,10 @@ static int set_ssl_option(struct mg_context *ctx) {
int i, size;
const char *pem;
// If PEM file is not specified, skip SSL initialization.
if ((pem = ctx->config[SSL_CERTIFICATE]) == NULL) {
// If PEM file is not specified and the init_ssl callback
// is not specified, skip SSL initialization.
if ((pem = ctx->config[SSL_CERTIFICATE]) == NULL &&
ctx->callbacks.init_ssl == NULL) {
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment