Hi,
we use stunnel in server-mode where an SSL enabled client can connect to our stunnel, and then stunnel connects to a non-SSL backend server. The backend server logs incoming connections from stunnel (source IP and port), but stunnel doesn't log the same information. This makes it difficult to match logs between stunnel and the backend.
This patch solves exactly this problem.
I rewrote the patch so that it can be cleanly applied to any future (and past) version of stunnel.
From the website:
"How do I get a patch included into the release versions of Stunnel? Only patches released into the public domain stand a chance of getting into the actual Stunnel source. This means revised BSD patches are likely acceptable. Original BSD and GNU patches are not for example."
Since I would like very much that this patch makes it into the next release, I'll release it into the public domain or any other license that makes this possible.
kind regards, Steven