Closed Bug 747947 Opened 13 years ago Closed 13 years ago

Implement an "http only" variation of selfserv (httpserv)

Categories

(NSS :: Test, defect)

3.13.5
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(3 files)

In order to make the NSS_AIA testing fully self-contained, without having to rely on an external HTTP server, and without requiring that a separate HTTP server is installed on the build machine, NSS should provide a minimal HTTP server. In fact, selfserv already contains all of the functionality that we need for that. It's just that selfserv is designed to be a server for HTTPS, only. We have two choices to change this. (a) copy selfserv code, and remove anything that's SSL specific or (b) use additional code to enable selfserv to allow as a plain HTTP server
I have a patch that implements strategy (a), just because it was quicker for me to get it done this way.
Assignee: nobody → kaie
Above patch v1 introduces a new httpserv.c file. This patch shows the differences between existing selfserv.c and new httpserv.c Most of it is removal.
Do you prefer (a) clearly distinguish HTTP and HTTPS server tools with code duplication or (b) use a single selfserv tool that can do both HTTPS and HTTP, no code duplication, but more complicated usage of selfserv?
Attachment #617519 - Attachment description: Patch v1 --- add a separate httpserv executable → Patch v1 --- add a separate httpserv executable [tested]
Alternative implementation of the (b) approach.
Bob, Wan-Teh, please give me your opinion, whether we should go ahead with (a) and review patch v1, or whether we should go route (b), which would require me to restart my testing with patch B2.
Blocks: 748020
Attachment #617519 - Flags: review?(rrelyea)
Attachment #617519 - Flags: feedback?(wtc)
Comment on attachment 617519 [details] [diff] [review] Patch v1 --- add a separate httpserv executable [tested] r+ rrelyea. Thanks for the diff patch between httpserv and selfserv. bob
Attachment #617519 - Flags: review?(rrelyea) → review+
Checking in manifest.mn; /cvsroot/mozilla/security/nss/cmd/manifest.mn,v <-- manifest.mn new revision: 1.35; previous revision: 1.34 done RCS file: /cvsroot/mozilla/security/nss/cmd/httpserv/Makefile,v done Checking in httpserv/Makefile; /cvsroot/mozilla/security/nss/cmd/httpserv/Makefile,v <-- Makefile initial revision: 1.1 done RCS file: /cvsroot/mozilla/security/nss/cmd/httpserv/httpserv.c,v done Checking in httpserv/httpserv.c; /cvsroot/mozilla/security/nss/cmd/httpserv/httpserv.c,v <-- httpserv.c initial revision: 1.1 done RCS file: /cvsroot/mozilla/security/nss/cmd/httpserv/manifest.mn,v done Checking in httpserv/manifest.mn; /cvsroot/mozilla/security/nss/cmd/httpserv/manifest.mn,v <-- manifest.mn initial revision: 1.1 done
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Summary: Implement an "http only" variation of selfserv → Implement an "http only" variation of selfserv (httpserv)
Target Milestone: --- → 3.14
Attachment #617519 - Flags: feedback?(wtc)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: