As requested in Bug #64185, I'm filing this again with updated patches. The patches are for stunnel-4.10, though, since that's the latest release. I've updated the net-misc/stunnel-4.10 ebuild to add two patches and enable DSA key support. The purpose patch allows one to specify which "purpose" the client key is checked for. This is useful for log hosts that have "servers" (e.g. the logging output of an HTTP daemon) as clients (to store the logs). The keytype patch adds support for non-RSA keys. The configure option "--enable-dh" is necessary for DSA keys.
Created attachment 61851 [details, diff] patch against stunnel-4.10.ebuild
Created attachment 61852 [details, diff] Purpose patch against stunnel-4.10
Created attachment 61853 [details, diff] Non-RSA key support for stunnel-4.10
Thanks, I'll take a look at this when I get a chance to test.
Apparently didn't go anywhere, sorry. :/ If you are still interested, attach updated patches for 4.20 and reopen. Thanks.