environment transformer
[email protected] (Paul Jarc) Fri, 13 Sep 2002 18:12:27 -0400
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
One reason publicfile has trouble running under sslserver is that it
looks for $TCPREMOTEIP, etc., rather than ${${PROTO}REMOTEIP}. Other
UCSPI applications may have similar assumptions.
This Perl script: <URL:http://multivac.cwru.edu./prj/ucspi-proto-hack>
looks at $PROTO, sets new variables according to $NEWPROTO, and runs a
given command. E.g., if the initial environment includes:
PROTO=SSL
SSLREMOTEIP=1.2.3.4
SSLLOCALIP=5.6.7.8
NEWPROTO=TCP
Then the new environment will also include:
TCPREMOTEIP=1.2.3.4
TCPLOCALIP=5.6.7.8
So you can run "env NEWPROTO=TCP sslserver ucspi-proto-env publicfile".
Well, in the case of publicfile and https, you still need the patch
for https URLs. Hopefully this will avoid the need for patching in
other cases. Of course, the real fix is to make each application look
at $PROTO.
paul