|
@@ -3020,6 +3020,12 @@ static int push(struct mg_context *ctx,
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
+#ifdef NO_SSL
|
|
|
+ if (ssl) {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+#endif
|
|
|
+
|
|
|
do {
|
|
|
|
|
|
#ifndef NO_SSL
|
|
@@ -5925,6 +5931,7 @@ static int is_not_modified(const struct mg_connection *conn,
|
|
|
}
|
|
|
|
|
|
|
|
|
+#if !defined(NO_CGI)
|
|
|
static int
|
|
|
forward_body_data(struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl)
|
|
|
{
|
|
@@ -6015,7 +6022,7 @@ forward_body_data(struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl)
|
|
|
return success;
|
|
|
}
|
|
|
|
|
|
-#if !defined(NO_CGI)
|
|
|
+
|
|
|
/* This structure helps to create an environment for the spawned CGI program.
|
|
|
* Environment is an array of "VARIABLE=VALUE\0" ASCIIZ strings,
|
|
|
* last element must be NULL.
|