Stunnel.org  
   
Home
About
News
Faq
Examples
Download
Patches
Support
Related
<Patch List> <Patch Directory>
Stunnel Patches

Stunnel Patches

At various times folks release patches to the current version of Stunnel. Sometimes these make it into the next version of the software, sometimes they do not. Below you will find various patches submitted by users.

If you wish to submit a patch, please retrieve the latest version of stunnel for comparison. Patches should be in 'diff -cr' form. You are welcome to submit them directly to the webmaster or you can submit them to the mailing list. Please include information about what the patch does, how, and why.

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.

You are welcome to submit patches with alternate licenses, however you must explicitly say so when submitting them to the mailing list or maintainers. Any patch that is submitted without an acompanying license will be assumed to be a public domain patch.

User-submitted Patches

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.

CreatorSteven Van Acker
Patch to Version4.05
TypeNew Feature
Patchpoll_deepstar.patch
Description

(Full Text)

Poll vs Select handling


CreatorNeil Dunbar
Patch to Version4.05
TypeNew Feauter
Patchconnect-proxy_dunbar.patch
Description

(Full Text)

HTTP Connect-style proxying


CreatorMatthias Wald
Patch to Version4.05
TypeNew Feature
Patchconnect-proxy.mwald.patch
Description

(Full Text)

HTTP Connect-style proxy


CreatorBrian Hatch
Patch to Version4.04
TypeNew Feature
Patchstdin_confpatch_bri.patch
Description

(Full Text)

Allow config file on stdin or any arbitrary file descriptor


CreatorJan-Piet Mens
Patch to Version4.04
TypeNew Feature
Patchdispatcher-ldap.patch
Description

(Full Text)

Determine tunnel endpoint dynamically via LDAP lookups


CreatorDiarmuid O'Neill
Patch to Version3.23
TypeEnhancement
Patchstunnel-3.23_engine.patch
Description

(Full Text)

OpenSSL Engine support


CreatorDiarmuid O'Neill
Patch to Version4.04
TypeNew Feature
Patchstunnel-4.04_engine.patch
Description

(Full Text)

OpenSSL Engine Patch


CreatorBrian Hatch
Patch to Version4.04
TypeBugfix
Patchblinding-4.x_bri.patch
StatusNot needed if you have recent versions (later than 0.9.6j or 0.9.7b) of OpenSSL. Patch fixed on Apr 23, 2003, to not turn on blinding in client mode when no cert in use.
Description

(Full Text)

Forces RSA blinding to prevent timing attacks which can determine an RSA private key.


CreatorBrian Hatch
Patch to Version3.22
TypeBugfix
Patchblinding-3.x_bri.patch
StatusNot needed if you have recent versions (later than 0.9.6j or 0.9.7b) of OpenSSL. Patch included in 3.24 and later. Patch updated Apr 23, 2003 to fix bug where blinding attempted even in client mode with no cert.
Description

(Full Text)

Forces RSA blinding to prevent timing attacks which can determine an RSA private key.


CreatorDavid A Jenkins
Patch to Version4.04
TypeEnhancement
Patchpoll_dj.patch
Description

(Full Text)

Patch to replace calls to select with poll


CreatorPeter Friend
Patch to Version3.24
TypeNew Feature
Patchhighfds.patch
Description

(Full Text)

Work around a bug in some systems (Solaris?) that have trouble with descriptors greater than 255.


CreatorRichard Antony Burton
Patch to Version4.04
TypeNew Feature
PatchMSVC++6.patch
Description

(Full Text)

Enables you to compile with Microsoft Visual C++ 6 natively. (Patch file is really a zip file, rename appropriately.)


CreatorOpenSSL Development Team
Patch to Version4.04
TypeBugfix
Patchopenssl-rsablinding.patch
Description

(Full Text)

This is a patch to OpenSSL versions 0.9.7a and earlier, and 0.9.6i and earlier. It forces RSA blinding, which can defeat a recently discovered timing attack that could allow a cracker to brute force your private RSA keys. You do not need this if you use Stunnel 4.05 or later, or OpenSSL-0.9.7b or later or OpenSSL-0.9.6j or later.


CreatorSascha Silbe
Patch to Version4.04
TypeNew Feature
Patchcert-purpose_sascha.patch
Description

(Full Text)

check peer's certificate purpose (client, server, smime, etc)


CreatorScott Gifford
Patch to Version3.22
TypeEnhancement
Patchmany_sgifford.patch
Description

(Full Text)

Non-SSL passthrough for negotiated protocols, immediate chroot/setuid options, use open file descriptor instead of new remote socket or local program, and more.


CreatorJoseph Formoso
Patch to Version4.04
TypeBugfix
Patchirixsigchd_jformoso.patch
Description

(Full Text)

SIGCHLD fix for Irix


CreatorDiarmuid O'Neill
Patch to Version3.23
TypeNew Feature
Patchengine_doneill.patch
Description

(Full Text)

OpenSSL Engine support


CreatorDiarmuid O'Neill
Patch to Version4.04
TypeNew Feature
Patchengine-4.x_doneill.patch
Description

(Full Text)

OpenSSL Engine Support


CreatorGeoff Thorpe
Patch to Version4.04
TypeNew Feature
Patchdistcache_geoff.patch
Description

(Full Text)

distributed session caching with distcache


CreatorMarkus Moeller
Patch to Version4.04
Typenew feature
Patchkerberos_mm.patch
Description

(Full Text)

Adds kerberos support to Stunnel


CreatorSteve Grubb
Patch to Version3.14
TypeEnhancement
Patchchld-syslog-etc_grubb.patch
Description

(Full Text)

Patch for fork model (SIGCHLD, syslog, reaping, etc)


CreatorJukka Pihl
Patch to Version3.20
TypeEnhancement
Patchthread_pooling_jukka.patch
Description

(Full Text)

Posix Theard Pooling


CreatorPeter D. Gray
Patch to Version4.04
TypeNew Feature
Patchconndetails_peter.patch
Description

(Full Text)

writes connection details for current tunnel to filesystem


CreatorKen Mattsen
Patch to Version4.04
TypeNew Feature
Patchshowontray_kmattsen.patch
Description

(Full Text)

Ability to turn on/off the tray icon in Stunnel 4.x on Windows


CreatorAaron Linville
Patch to Version3.19
TypePortability
Patchosx_aaron.patch
Description

(Full Text)

Allow compilation on Mac OS X and Darwin.


CreatorVictor Danilchenko
Patch to Version3.20
TypeBugfix
Patchsyslog_danilche.patch
Description

(Full Text)

Force Stunnel to open and close the log each time it sends a message to avoid a bug in Digital Unix 4.0d (and perhaps others)


CreatorMatthias Lange
Patch to Version3.21c
TypeSecurity
Patchformatbug_ml.patch
StatusWill be incorporated into 3.22
Description

(Full Text)

Fix for format bug in pop/smtp negotiation code.


Creatordeekoo@tentacle.net
Patch to Version3.20
TypeNew feature
Patchenv_rem_host_deeko.patch
Description

(Full Text)

Allow you to specify the remote host in an env var, not on command line


CreatorPetr Vandrovec
Patch to Version3.18
TypeNew Feature
Patchvandrove_oob.patch
StatusSimilar functionality introduced into Stunnel-3.19
Description

(Full Text)

New -O option to discard (rather than inline) OOB data.


CreatorJohn R Durand
Patch to Version4.03
TypeNew Feature
Patchxforwardedfor_jrd.patch
Description

(Full Text)

Add an X-Forwarded-For header for HTTP connections.


CreatorKristofer T. Karas
Patch to Version3.14
Typefeature
Patchstdout_ktk.patch
StatusSimilar functionality introduced into stunnel-3.15
Description

(Full Text)

Allow Stunnel to read from stdin and write to stdout


CreatorSven Paulus
Patch to Version3.22
TypeNew Feature
Patchssl_method_sp.patch
Description

(Full Text)

Select SSL method (ssl2/ssl3/tls) from the command line


CreatorMartin Germann
Patch to Version3.14
TypeNew feature
Patchnntp_germann.patch
StatusIntegrated into stunnel-3.15
Description

(Full Text)

Adds '-n nntp' negotiation option to Stunnel.


CreatorMartin Germann
Patch to Version3.14
TypeNew feature
Patchpop_germann.patch
StatusIntegrated into stunnel-3.15
Description

(Full Text)

Adds '-n pop' negotiation option to Stunnel.


CreatorNathan
Patch to Version3.x
TypeNew Feature
Patchpop3_starttls_nathan.patch
Description

(Full Text)

POP3 STARTTLS server negotiation


CreatorBrent Baccala
Patch to Version3.14
TypeFeature
Patchdelay-lookup.baccala.patch
Description

(Full Text)

Delay dns lookups until connect time (run-time option)


CreatorMichael Brown
Patch to Version3.14
TypeFeature
Patchdelay-lookup.michaelb.patch
Description

(Full Text)

Delay dns lookups until connect time (run-time option)


CreatorDavid A Jenkins
Patch to Version3.14
TypeNew Feature
Patchbandwidth-limiting_dj.patch
Description

(Full Text)

Enable bandwidth-limiting options to Stunnel


CreatorDavid A Jenkins
Patch to Version4.04
TypeNew Feature
Patchbandwidth-limiting-2_dj.patch
Description

(Full Text)

Enable per-connection bandwidth limiting options to Stunnel


CreatorMike Wilson
Patch to Version3.20
TypeEnhancement
Patchnmake_wilson.patch
Description

(Full Text)

Patch to stunnel.mak to support nmake


CreatorMartin Germann
Patch to Version3.14
TypeBugfix
Patchsmtp_martin.patch
Description

(Full Text)

Modify STARTTLS negotiation.


CreatorDaniel Savard
Patch to Version4.00
TypeNew Feature
Patchconnect-proxy_savardd.patch
Description

(Full Text)

Use stunnel through a https proxy that supports the CONNECT protocol.


CreatorAnon A. Mous
Patch to Version3.22
TypeNew Feature
Patchproxy_anon.patch
Description

(Full Text)

Proxy Passthru (HTTP CONNECT) patch


CreatorTan Swee Heng
Patch to Version3.14
TypeNew Feature
Patchproxy_sweeheng.patch
Description

(Full Text)

Patch Stunnel to support web proxies (squid, etc.)


CreatorCraig Boston
Patch to Version3.14
TypeEnhancement
Patchwinnt_cboston.patch
Description

(Full Text)

NT Enhancements - MS Visual C++, Native service support, NT event logging


CreatorJonathan Hoffman
Patch to Version3.14
TypeNew Feature
Patchcertchain_jih.patch
Description

(Full Text)

Allow use of certificate chains, borrowed from mod_ssl code.


CreatorKai Engert
Patch to Version3.11
TypeNew feature
Patchsmb_kai.patch
Description

(Full Text)

Adds SMB support to Stunnel for samba/windows mounts


CreatorMarkus Foerster
Patch to Version3.11
Typefeature
Patchsetenv_mf.patch
Description

(Full Text)

Have Stunnel set several environment variables that are related to the SSL session, such as the client side certificate.


CreatorMarkus Foerster
Patch to Version3.11
Typefeature
Patchstdout_mf.patch
StatusSimilar functionality introduced into stunnel-3.15
Description

(Full Text)

Allow Stunnel to read from stdin and write to stdout


CreatorPeter Wagemans
Patch to Version3.8pX
Typenew feature
Patchsslloop_pwagemans.patch
StatusIntegrated into stunnel-3.9.
Description

(Full Text)

Improved SSL loop code, based on the state_machine.c from Ben Laurie.

According to users who have tried it, this fixes the annoying random stalls and hangs that stunnel has occasionaly experienced on certain platforms or with other SSL software.


CreatorOliver Mandischer
Patch to Version3.11
Typefeature
Patchclient_smtp_om.patch
Description

(Full Text)

Allow client mode smtp protocol


CreatorKristofer T. Karas
Patch to Version3.8
Typenew feature
Patchkeylength_ktk.patch
StatusProblem fixed independently in 3.9.
Description

(Full Text)

Patch to fix incompatible key-length problems. Stunnel wasn't honoring requested key-lengths correctly, causing some clients (such as IE 40-bit) to fail during the handshake phase.


CreatorOle Craig
Patch to Version3.8p4
Typenew feature
Patchsyslog_fac_olc2.patch
StatusFunctionality will be included in stunnel-3.8p5.
Description

(Full Text)

An improved version of the previous syslog-facility patch. Allows you to specify a syslog facility instead of relying on DAEMON


CreatorRobert Spier
Patch to Version3.8p4
Typenew feature
Patchwingui_rspier.patch
StatusAlpha software. This functionality will be integrated when it is more tested. (Also requires the icon2.ico file in the patches directory)
Description

(Full Text)

A minimal GUI for Stunnel in Windows.


CreatorOle Craig
Patch to Version3.8p4
Typenew feature
Patchsyslog_fac_olc.patch
StatusDepreciated, use the newer patch which 'upgrades' the the -D flag instead.
Description

(Full Text)

Allow you to specify a syslog facility instead of relying on DAEMON


CreatorBrent Baccala
Patch to Version3.8p4
Typebugfix
Patchspec_baccala.patch
StatusWill be incorporated into 3.8p5 as is.
Description

(Full Text)

Make pids write to /var/run instead of /usr/local/var/stunnel


CreatorBrian Hatch
Patch to Version3.8
Typesecurity/bugfix/new features
Patchstunnel-3.8p1.patch
Description

(Full Text)

Patch from 3.8 => 3.8p1


CreatorBrian Hatch
Patch to Version3.8
Typesecurity/new feature
Patchpid_bri.patch
StatusIncorporated into stunnel-3.8p1 and later
Description

(Full Text)

Fix how stunnel handles pid creation/deletion and fix fopen() insecurity


CreatorBrian Hatch
Patch to Version3.8
Typesecurity
Patchprng_bri.patch
StatusIncorporated into stunnel-3.8p1 and later
Description

(Full Text)

A patch to properly seed OpenSSL's PRNG


CreatorBrian Hatch
Patch to Version3.8
Typebugfix
Patchman_bri.patch
StatusIncorporated into stunnel-3.8p1 and later
Description

(Full Text)

Fix the manual pages and '-h' output


CreatorBrian Hatch
Patch to Version3.8
Typenew feature
Patchcacert_bri.patch
StatusIncorporated into stunnel-3.8p1 and later
Description

(Full Text)

Add a flag to specify the location of your CA Certificate pem.


CreatorBrian Hatch
Patch to Version3.8
Typebugfix
Patchsessid_bri.patch
StatusIncorporated into stunnel-3.8p1 and later
Description

(Full Text)

Allow client side SSL session ID reuse.


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.