Commit 80d9fbcd authored by valenok's avatar valenok

Passing user_data into MG_INIT_SSL as 3rd parameter

parent fae26c1b
...@@ -3574,7 +3574,8 @@ static int set_ssl_option(struct mg_context *ctx) { ...@@ -3574,7 +3574,8 @@ static int set_ssl_option(struct mg_context *ctx) {
if ((CTX = SSL_CTX_new(SSLv23_server_method())) == NULL) { if ((CTX = SSL_CTX_new(SSLv23_server_method())) == NULL) {
cry(fc(ctx), "SSL_CTX_new error: %s", ssl_error()); cry(fc(ctx), "SSL_CTX_new error: %s", ssl_error());
} else if (ctx->user_callback != NULL) { } else if (ctx->user_callback != NULL) {
ctx->user_callback(MG_INIT_SSL, (struct mg_connection *) CTX, NULL); ctx->user_callback(MG_INIT_SSL, (struct mg_connection *) CTX,
ctx->user_data);
} }
if (CTX != NULL && SSL_CTX_use_certificate_file(CTX, pem, if (CTX != NULL && SSL_CTX_use_certificate_file(CTX, pem,
......
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