|
@@ -4000,7 +4000,7 @@ mg_get_request_link(const struct mg_connection *conn, char *buf, size_t buflen)
|
|
|
int auth_domain_check_enabled =
|
|
|
conn->dom_ctx->config[ENABLE_AUTH_DOMAIN_CHECK]
|
|
|
&& (!mg_strcasecmp(
|
|
|
- conn->dom_ctx->config[ENABLE_AUTH_DOMAIN_CHECK], "yes"));
|
|
|
+ conn->dom_ctx->config[ENABLE_AUTH_DOMAIN_CHECK], "yes"));
|
|
|
const char *server_domain =
|
|
|
conn->dom_ctx->config[AUTHENTICATION_DOMAIN];
|
|
|
|
|
@@ -12227,7 +12227,7 @@ print_dav_dir_entry(struct de *de, void *data)
|
|
|
struct mg_connection *conn = (struct mg_connection *)data;
|
|
|
if (!de || !conn
|
|
|
|| !print_props(
|
|
|
- conn, conn->request_info.local_uri, de->file_name, &de->file)) {
|
|
|
+ conn, conn->request_info.local_uri, de->file_name, &de->file)) {
|
|
|
return -1;
|
|
|
}
|
|
|
return 0;
|
|
@@ -14567,7 +14567,7 @@ parse_port_string(const struct vec *vec, struct socket *so, int *ip_version)
|
|
|
#if defined(USE_IPV6)
|
|
|
} else if (sscanf(vec->ptr, "[%49[^]]]:%u%n", buf, &port, &len) == 2
|
|
|
&& mg_inet_pton(
|
|
|
- AF_INET6, buf, &so->lsa.sin6, sizeof(so->lsa.sin6))) {
|
|
|
+ AF_INET6, buf, &so->lsa.sin6, sizeof(so->lsa.sin6))) {
|
|
|
/* IPv6 address, examples: see above */
|
|
|
/* so->lsa.sin6.sin6_family = AF_INET6; already set by mg_inet_pton
|
|
|
*/
|
|
@@ -16112,9 +16112,9 @@ init_ssl_ctx_impl(struct mg_context *phys_ctx,
|
|
|
callback_ret = (phys_ctx->callbacks.init_ssl_domain == NULL)
|
|
|
? 0
|
|
|
: (phys_ctx->callbacks.init_ssl_domain(
|
|
|
- dom_ctx->config[AUTHENTICATION_DOMAIN],
|
|
|
- dom_ctx->ssl_ctx,
|
|
|
- phys_ctx->user_data));
|
|
|
+ dom_ctx->config[AUTHENTICATION_DOMAIN],
|
|
|
+ dom_ctx->ssl_ctx,
|
|
|
+ phys_ctx->user_data));
|
|
|
|
|
|
/* If domain callback returns 0, civetweb sets up the SSL certificate.
|
|
|
* If it returns 1, civetweb assumes the calback already did this.
|
|
@@ -16280,9 +16280,9 @@ init_ssl_ctx(struct mg_context *phys_ctx, struct mg_domain_context *dom_ctx)
|
|
|
callback_ret = (phys_ctx->callbacks.external_ssl_ctx_domain == NULL)
|
|
|
? 0
|
|
|
: (phys_ctx->callbacks.external_ssl_ctx_domain(
|
|
|
- dom_ctx->config[AUTHENTICATION_DOMAIN],
|
|
|
- &ssl_ctx,
|
|
|
- phys_ctx->user_data));
|
|
|
+ dom_ctx->config[AUTHENTICATION_DOMAIN],
|
|
|
+ &ssl_ctx,
|
|
|
+ phys_ctx->user_data));
|
|
|
|
|
|
if (callback_ret < 0) {
|
|
|
mg_cry_ctx_internal(
|