Fossil SCM

Make the --nossl and --nocompress server options available for CGI requests.

florian 2023-02-06 13:37 trunk merge
Commit 391526232e91d650fb952fc3ad610c713f5a2fb68a6a38c457b2fd93c6235c55
2 files changed +20 +20
+20
--- src/main.c
+++ src/main.c
@@ -2257,10 +2257,14 @@
22572257
** showing a list of available repositories if
22582258
** the URL is "/".
22592259
**
22602260
** localauth Grant administrator privileges to connections
22612261
** from 127.0.0.1 or ::1.
2262
+**
2263
+** nossl Signal that no SSL connections are available.
2264
+**
2265
+** nocompress Do not compress HTTP replies.
22622266
**
22632267
** skin: LABEL Use the built-in skin called LABEL rather than
22642268
** the default. If there are no skins called LABEL
22652269
** then this line is a no-op.
22662270
**
@@ -2378,10 +2382,26 @@
23782382
** Grant "administrator" privileges to users connecting with HTTP
23792383
** from IP address 127.0.0.1. Do not bother checking credentials.
23802384
*/
23812385
g.useLocalauth = 1;
23822386
continue;
2387
+ }
2388
+ if( blob_eq(&key, "nossl") ){
2389
+ /* nossl
2390
+ **
2391
+ ** Signal that no SSL connections are available.
2392
+ */
2393
+ g.sslNotAvailable = 1;
2394
+ continue;
2395
+ }
2396
+ if( blob_eq(&key, "nocompress") ){
2397
+ /* nocompress
2398
+ **
2399
+ ** Do not compress HTTP replies.
2400
+ */
2401
+ g.fNoHttpCompress = 1;
2402
+ continue;
23832403
}
23842404
if( blob_eq(&key, "repolist") ){
23852405
/* repolist
23862406
**
23872407
** If using "directory:" and the URL is "/" then generate a page
23882408
--- src/main.c
+++ src/main.c
@@ -2257,10 +2257,14 @@
2257 ** showing a list of available repositories if
2258 ** the URL is "/".
2259 **
2260 ** localauth Grant administrator privileges to connections
2261 ** from 127.0.0.1 or ::1.
 
 
 
 
2262 **
2263 ** skin: LABEL Use the built-in skin called LABEL rather than
2264 ** the default. If there are no skins called LABEL
2265 ** then this line is a no-op.
2266 **
@@ -2378,10 +2382,26 @@
2378 ** Grant "administrator" privileges to users connecting with HTTP
2379 ** from IP address 127.0.0.1. Do not bother checking credentials.
2380 */
2381 g.useLocalauth = 1;
2382 continue;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2383 }
2384 if( blob_eq(&key, "repolist") ){
2385 /* repolist
2386 **
2387 ** If using "directory:" and the URL is "/" then generate a page
2388
--- src/main.c
+++ src/main.c
@@ -2257,10 +2257,14 @@
2257 ** showing a list of available repositories if
2258 ** the URL is "/".
2259 **
2260 ** localauth Grant administrator privileges to connections
2261 ** from 127.0.0.1 or ::1.
2262 **
2263 ** nossl Signal that no SSL connections are available.
2264 **
2265 ** nocompress Do not compress HTTP replies.
2266 **
2267 ** skin: LABEL Use the built-in skin called LABEL rather than
2268 ** the default. If there are no skins called LABEL
2269 ** then this line is a no-op.
2270 **
@@ -2378,10 +2382,26 @@
2382 ** Grant "administrator" privileges to users connecting with HTTP
2383 ** from IP address 127.0.0.1. Do not bother checking credentials.
2384 */
2385 g.useLocalauth = 1;
2386 continue;
2387 }
2388 if( blob_eq(&key, "nossl") ){
2389 /* nossl
2390 **
2391 ** Signal that no SSL connections are available.
2392 */
2393 g.sslNotAvailable = 1;
2394 continue;
2395 }
2396 if( blob_eq(&key, "nocompress") ){
2397 /* nocompress
2398 **
2399 ** Do not compress HTTP replies.
2400 */
2401 g.fNoHttpCompress = 1;
2402 continue;
2403 }
2404 if( blob_eq(&key, "repolist") ){
2405 /* repolist
2406 **
2407 ** If using "directory:" and the URL is "/" then generate a page
2408
+20
--- src/main.c
+++ src/main.c
@@ -2257,10 +2257,14 @@
22572257
** showing a list of available repositories if
22582258
** the URL is "/".
22592259
**
22602260
** localauth Grant administrator privileges to connections
22612261
** from 127.0.0.1 or ::1.
2262
+**
2263
+** nossl Signal that no SSL connections are available.
2264
+**
2265
+** nocompress Do not compress HTTP replies.
22622266
**
22632267
** skin: LABEL Use the built-in skin called LABEL rather than
22642268
** the default. If there are no skins called LABEL
22652269
** then this line is a no-op.
22662270
**
@@ -2378,10 +2382,26 @@
23782382
** Grant "administrator" privileges to users connecting with HTTP
23792383
** from IP address 127.0.0.1. Do not bother checking credentials.
23802384
*/
23812385
g.useLocalauth = 1;
23822386
continue;
2387
+ }
2388
+ if( blob_eq(&key, "nossl") ){
2389
+ /* nossl
2390
+ **
2391
+ ** Signal that no SSL connections are available.
2392
+ */
2393
+ g.sslNotAvailable = 1;
2394
+ continue;
2395
+ }
2396
+ if( blob_eq(&key, "nocompress") ){
2397
+ /* nocompress
2398
+ **
2399
+ ** Do not compress HTTP replies.
2400
+ */
2401
+ g.fNoHttpCompress = 1;
2402
+ continue;
23832403
}
23842404
if( blob_eq(&key, "repolist") ){
23852405
/* repolist
23862406
**
23872407
** If using "directory:" and the URL is "/" then generate a page
23882408
--- src/main.c
+++ src/main.c
@@ -2257,10 +2257,14 @@
2257 ** showing a list of available repositories if
2258 ** the URL is "/".
2259 **
2260 ** localauth Grant administrator privileges to connections
2261 ** from 127.0.0.1 or ::1.
 
 
 
 
2262 **
2263 ** skin: LABEL Use the built-in skin called LABEL rather than
2264 ** the default. If there are no skins called LABEL
2265 ** then this line is a no-op.
2266 **
@@ -2378,10 +2382,26 @@
2378 ** Grant "administrator" privileges to users connecting with HTTP
2379 ** from IP address 127.0.0.1. Do not bother checking credentials.
2380 */
2381 g.useLocalauth = 1;
2382 continue;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2383 }
2384 if( blob_eq(&key, "repolist") ){
2385 /* repolist
2386 **
2387 ** If using "directory:" and the URL is "/" then generate a page
2388
--- src/main.c
+++ src/main.c
@@ -2257,10 +2257,14 @@
2257 ** showing a list of available repositories if
2258 ** the URL is "/".
2259 **
2260 ** localauth Grant administrator privileges to connections
2261 ** from 127.0.0.1 or ::1.
2262 **
2263 ** nossl Signal that no SSL connections are available.
2264 **
2265 ** nocompress Do not compress HTTP replies.
2266 **
2267 ** skin: LABEL Use the built-in skin called LABEL rather than
2268 ** the default. If there are no skins called LABEL
2269 ** then this line is a no-op.
2270 **
@@ -2378,10 +2382,26 @@
2382 ** Grant "administrator" privileges to users connecting with HTTP
2383 ** from IP address 127.0.0.1. Do not bother checking credentials.
2384 */
2385 g.useLocalauth = 1;
2386 continue;
2387 }
2388 if( blob_eq(&key, "nossl") ){
2389 /* nossl
2390 **
2391 ** Signal that no SSL connections are available.
2392 */
2393 g.sslNotAvailable = 1;
2394 continue;
2395 }
2396 if( blob_eq(&key, "nocompress") ){
2397 /* nocompress
2398 **
2399 ** Do not compress HTTP replies.
2400 */
2401 g.fNoHttpCompress = 1;
2402 continue;
2403 }
2404 if( blob_eq(&key, "repolist") ){
2405 /* repolist
2406 **
2407 ** If using "directory:" and the URL is "/" then generate a page
2408

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button