Commit 6bd35a4c authored by Sergey Lyubka's avatar Sergey Lyubka

Style changes

parent fb8f0ed4
...@@ -2295,10 +2295,8 @@ static int authorize(struct mg_connection *conn, FILE *fp) { ...@@ -2295,10 +2295,8 @@ static int authorize(struct mg_connection *conn, FILE *fp) {
if (!strcmp(ah.user, f_user) && if (!strcmp(ah.user, f_user) &&
!strcmp(conn->ctx->config[AUTHENTICATION_DOMAIN], f_domain)) !strcmp(conn->ctx->config[AUTHENTICATION_DOMAIN], f_domain))
return check_password( return check_password(conn->request_info.request_method, ha1, ah.uri,
conn->request_info.request_method, ah.nonce, ah.nc, ah.cnonce, ah.qop, ah.response);
ha1, ah.uri, ah.nonce, ah.nc, ah.cnonce, ah.qop,
ah.response);
} }
return 0; return 0;
...@@ -4329,7 +4327,7 @@ static int set_ssl_option(struct mg_context *ctx) { ...@@ -4329,7 +4327,7 @@ static int set_ssl_option(struct mg_context *ctx) {
struct mg_connection *conn; struct mg_connection *conn;
int i, size; int i, size;
const char *pem; const char *pem;
// If PEM file is not specified, skip SSL initialization. // If PEM file is not specified, skip SSL initialization.
if ((pem = ctx->config[SSL_CERTIFICATE]) == NULL) { if ((pem = ctx->config[SSL_CERTIFICATE]) == NULL) {
return 1; return 1;
...@@ -4354,7 +4352,7 @@ static int set_ssl_option(struct mg_context *ctx) { ...@@ -4354,7 +4352,7 @@ static int set_ssl_option(struct mg_context *ctx) {
cry(fc(ctx), "SSL_CTX_new (server) error: %s", ssl_error()); cry(fc(ctx), "SSL_CTX_new (server) error: %s", ssl_error());
return 0; return 0;
} }
// If user callback returned non-NULL, that means that user callback has // If user callback returned non-NULL, that means that user callback has
// set up certificate itself. In this case, skip sertificate setting. // set up certificate itself. In this case, skip sertificate setting.
conn = fc(ctx); conn = fc(ctx);
......
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