From 5ab32ac0559ac899de2dc1cf63f7be3c2c9412cd Mon Sep 17 00:00:00 2001 From: Raymond Pasco Date: Mon, 12 Dec 2016 14:39:56 -0800 Subject: [PATCH] Use assumed-secure for the "secure" port --- Spec/http-ports.txt | 2 +- vere/http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Spec/http-ports.txt b/Spec/http-ports.txt index 708c09a71..3476a70c9 100644 --- a/Spec/http-ports.txt +++ b/Spec/http-ports.txt @@ -8,6 +8,6 @@ http-ports-line = port-num SP secure-val SP loopback-val ; number of a port being listened on port-num = *DIGIT ; whether the http subsystem has the port marked as "secure" -secure-val = ("secure" / "insecure") +secure-val = ("assumed-secure" / "insecure") ; whether the port is bound only on loopback or on all interfaces loopback-val = ("loopback" / "public") diff --git a/vere/http.c b/vere/http.c index ebeb08fd4..62c2f6087 100644 --- a/vere/http.c +++ b/vere/http.c @@ -1109,7 +1109,7 @@ _http_write_ports_file(c3_c *pax_c) por_u = fopen(paf_c, "w"); for ( htp_u = u3_Host.htp_u; htp_u; htp_u = htp_u->nex_u ) { fprintf(por_u, "%u %s %s\n", htp_u->por_w, - (c3y == htp_u->sec) ? "secure" : "insecure", + (c3y == htp_u->sec) ? "assumed-secure" : "insecure", (c3y == htp_u->lop) ? "loopback" : "public"); }