Use assumed-secure for the "secure" port

This commit is contained in:
Raymond Pasco 2016-12-12 14:39:56 -08:00
parent 061e7d026a
commit 5ab32ac055
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,6 @@ http-ports-line = port-num SP secure-val SP loopback-val
; number of a port being listened on ; number of a port being listened on
port-num = *DIGIT port-num = *DIGIT
; whether the http subsystem has the port marked as "secure" ; 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 ; whether the port is bound only on loopback or on all interfaces
loopback-val = ("loopback" / "public") loopback-val = ("loopback" / "public")

View File

@ -1109,7 +1109,7 @@ _http_write_ports_file(c3_c *pax_c)
por_u = fopen(paf_c, "w"); por_u = fopen(paf_c, "w");
for ( htp_u = u3_Host.htp_u; htp_u; htp_u = htp_u->nex_u ) { 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, 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"); (c3y == htp_u->lop) ? "loopback" : "public");
} }