mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +00:00
Minor formatting fix
PUBLISHED_FROM=c56b4ae00c454e6931ab29b095641bf0222f860c
This commit is contained in:
1 parent
8874f3de9d
commit
37a7031f4e
1 file changed
+3
-5
+3
-5
@@ -12896,7 +12896,7 @@ int sl_set_ssl_opts(struct mg_connection *nc) {
|
|||||||
struct mg_ssl_if_ctx *ctx = (struct mg_ssl_if_ctx *) nc->ssl_if_data;
|
struct mg_ssl_if_ctx *ctx = (struct mg_ssl_if_ctx *) nc->ssl_if_data;
|
||||||
DBG(("%p ssl ctx: %p", nc, ctx));
|
DBG(("%p ssl ctx: %p", nc, ctx));
|
||||||
|
|
||||||
if (ctx) {
|
if (ctx != NULL) {
|
||||||
DBG(("%p %s,%s,%s,%s", nc, (ctx->ssl_cert ? ctx->ssl_cert : "-"),
|
DBG(("%p %s,%s,%s,%s", nc, (ctx->ssl_cert ? ctx->ssl_cert : "-"),
|
||||||
(ctx->ssl_key ? ctx->ssl_cert : "-"),
|
(ctx->ssl_key ? ctx->ssl_cert : "-"),
|
||||||
(ctx->ssl_ca_cert ? ctx->ssl_ca_cert : "-"),
|
(ctx->ssl_ca_cert ? ctx->ssl_ca_cert : "-"),
|
||||||
@@ -12928,10 +12928,8 @@ int sl_set_ssl_opts(struct mg_connection *nc) {
|
|||||||
ctx->ssl_server_name, strlen(ctx->ssl_server_name));
|
ctx->ssl_server_name, strlen(ctx->ssl_server_name));
|
||||||
DBG(("DOMAIN_NAME_VERIFICATION %s -> %d", ctx->ssl_server_name, err));
|
DBG(("DOMAIN_NAME_VERIFICATION %s -> %d", ctx->ssl_server_name, err));
|
||||||
/* Domain name verificationw as added in a NWP service pack, older
|
/* Domain name verificationw as added in a NWP service pack, older
|
||||||
* versions
|
* versions return SL_ENOPROTOOPT. There isn't much we can do about it,
|
||||||
* return SL_ENOPROTOOPT. There isn't much we can do about it, so we
|
* so we ignore the error. */
|
||||||
* ignore
|
|
||||||
* the error. */
|
|
||||||
if (err != 0 && err != SL_ENOPROTOOPT) return err;
|
if (err != 0 && err != SL_ENOPROTOOPT) return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user