Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306127 - net-misc/stunnel bump to 4.31
Summary: net-misc/stunnel bump to 4.31
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Lance Albertson (RETIRED)
URL: http://stunnel.mirt.net/pipermail/stu...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2010-02-20 23:03 UTC by Bertrand Jacquin
Modified: 2010-03-25 21:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
stunnel-4.29-xforwarded-for.patch (stunnel-4.29-xforwarded-for.patch,10.55 KB, patch)
2010-02-23 17:21 UTC, Stefan Behte (RETIRED)
Details | Diff
stunnel-4.31-xforwarded-for.patch (stunnel-4.31-xforwarded-for.patch,10.63 KB, patch)
2010-02-23 17:21 UTC, Stefan Behte (RETIRED)
Details | Diff
stunnel-4.29-r1.ebuild (stunnel-4.29-r1.ebuild,2.29 KB, text/plain)
2010-02-23 17:22 UTC, Stefan Behte (RETIRED)
Details
stunnel-4.31-xforwarded-for.patch (stunnel-4.31-xforwarded-for.patch,10.77 KB, patch)
2010-03-08 18:06 UTC, Stefan Behte (RETIRED)
Details | Diff
stunnel-4.29-xforwarded-for.patch (stunnel-4.29-xforwarded-for.patch,10.77 KB, patch)
2010-03-08 18:07 UTC, Stefan Behte (RETIRED)
Details | Diff
stunnel-4.29-x-forwarded-for.patch (stunnel-4.29-x-forwarded-for.patch,10.52 KB, patch)
2010-03-15 19:37 UTC, Stefan Behte (RETIRED)
Details | Diff
stunnel-4.31-x-forwarded-for.patch (stunnel-4.31-x-forwarded-for.patch,10.53 KB, patch)
2010-03-15 19:37 UTC, Stefan Behte (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2010-02-20 23:03:03 UTC
stunnel-4.29 is the last available version, 4.31 is online since 2/3/2010. Here are major update: 

- Graceful configuration reload with HUP signal on Unix
- Log file reopen on USR1 signal was added.
- Regression fixes

Reproducible: Always
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2010-02-23 17:21:23 UTC
Created attachment 220859 [details, diff]
stunnel-4.29-xforwarded-for.patch

Patch for stunnel that can insert a forwardfor header rediffed against 4.29, original Patch from http://haproxy.1wt.eu/download/patches/stunnel-4.22-xforwarded-for.diff
Comment 2 Stefan Behte (RETIRED) gentoo-dev Security 2010-02-23 17:21:44 UTC
Created attachment 220861 [details, diff]
stunnel-4.31-xforwarded-for.patch

Same, but for 4.31
Comment 3 Stefan Behte (RETIRED) gentoo-dev Security 2010-02-23 17:22:33 UTC
Created attachment 220863 [details]
stunnel-4.29-r1.ebuild

Updated ebuild for stunnel-4.29 with xforwardfor support
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2010-02-23 17:24:31 UTC
Text quoted from http://haproxy.1wt.eu/:

X-Forwarded-For support for Stunnel

Stunnel currently makes a perfect complement to provide SSL client-side support to HAProxy. However, since Stunnel is a proxy an has no knowledge of HTTP, the client's IP address was lost, which is somewhat annoying. A few patches were available on the Net to add the X-Forwarded-For header, but they introduced an undesirable buffer overflow. So I took my courage and wrote a reliable and secure patch to implement this useful feature. I sent it to Stunnel's authors but got no feedback. So the patch is provided here for Stunnel-4.14, 4.15, 4.20 and 4.22 in the hope it will be useful to some people.

It would be very cool, to have a USE-Flag for that. :)
Comment 5 Lance Albertson (RETIRED) gentoo-dev 2010-03-07 21:38:27 UTC
(In reply to comment #4)
> Text quoted from http://haproxy.1wt.eu/:
> 
> X-Forwarded-For support for Stunnel

<snip>

> It would be very cool, to have a USE-Flag for that. :)

I've bumped 4.31 however when I tried your patch the compile failed with an error. I tried the patch for 4.29 and it appears to work fine so I created 4.29-r1 with the patch and just did a simple bump for 4.31 without the patch.

Can you please provide a new patch that works for 4.31?

Thanks-
Comment 6 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-08 18:06:44 UTC
Created attachment 222701 [details, diff]
stunnel-4.31-xforwarded-for.patch
Comment 7 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-08 18:07:21 UTC
Created attachment 222703 [details, diff]
stunnel-4.29-xforwarded-for.patch
Comment 8 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-08 18:13:34 UTC
Thanks for adding it to .29-r1! :)

There is an modified patch, which is also online on the official haproxy website: http://haproxy.1wt.eu/download/patches/

- both would not build for Willy Tarreau (haproxy maintainer & patch author), because LOG_RAW was not defined, and the rest of src/options.c uses LOG_NOTICE, so he changed that

- I somehow killed the french chars

- additional built problem with 4.31 because of fuzz factor failure

I will do some tests tests later. Sorry for the bad quality of the .31 patch. :(
Comment 9 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-15 19:37:07 UTC
Created attachment 223779 [details, diff]
stunnel-4.29-x-forwarded-for.patch

Now without correct line breaks.
Comment 10 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-15 19:37:26 UTC
Created attachment 223781 [details, diff]
stunnel-4.31-x-forwarded-for.patch

Now without correct line breaks.
Comment 11 Stefan Behte (RETIRED) gentoo-dev Security 2010-03-15 19:41:27 UTC
Patches apply cleanly now. :)
Comment 12 Lance Albertson (RETIRED) gentoo-dev 2010-03-25 21:46:50 UTC
Thanks, finally committed it!