Patch info for stdout_mf
Patch info for stdout_mf
Creator | Markus Foerster |
---|
Patch to Version | 3.11 |
---|
Type | feature |
---|
Patch | stdout_mf.patch |
---|
Status | Similar functionality introduced into stunnel-3.15 |
---|
Description (Full Text) | Allow Stunnel to read from stdin and write to stdout
|
---|
Author Comments
Stunnel writes to stdin instead of stdout, which has the effect
that it is not possible to redirect its output. Example:
stunnel -c -r server > file
would not write to the file.
Instead of reading from stdin and writing to stdout, stunnel
both reads and writes from/to stdin.
The attached patch lets stunnel write to stdout if it reads
from stdin. It's not very elegant, but works for me.
[ Webmaster Note: The reason that stunnel worked this way is
because it was meant to be invoked as a daemon or from inetd,
and wasn't geared to handle this form of I/O. In inetd you
*must* have the input and output be the same file descriptor
because it is a bidirectional socket. ]
This website makes patches available for use by the
Internet community. However it does not endorse any of the patches
contained herein. They could be work perfectly, or totally foul up
everything. We don't know. Contact the authors if you have any
questions. Use at your own risk.
The Stunnel software package does not contain any
cryptography itself, however please remember that import and/or export of
cryptographic software, code providing hooks to cryptographic
algorithms, and discussion about cryptography is illegal in some countries.
It is imperative for you to know your local laws governing cryptography.
We're not liable for anything you do that violates your local laws.
|