Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652342 - net-vpn/corkscrew-2.0 doesn't work with authfile and modern proxies
Summary: net-vpn/corkscrew-2.0 doesn't work with authfile and modern proxies
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
Keywords: PATCH
Depends on:
Reported: 2018-04-03 15:27 UTC by Mark Tomich
Modified: 2020-09-15 21:24 UTC (History)
1 user (show)

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

updated corkscrew ebuild and patch (corkscrew.ebuild.tar.gz,1.74 KB, application/gzip)
2018-04-03 15:27 UTC, Mark Tomich

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Tomich 2018-04-03 15:27:52 UTC
Created attachment 526446 [details]
updated corkscrew ebuild and patch

Corkscrew (an http-proxy tunnelling software) doesn't work with modern proxies when an authfile is specified.  The reason is, most (all?) modern http servers expect newlines to be of the form \r\n (cr,lf) rather than just \n.  Even the comments in the source code admits as much, but the code handling the authfile isn't written in that way.  This patch *should* go upstream, but the software seems to have been abandoned in 2001, so I figure there isn't much hope of that...instead, let's make life better for Gentoo users...maybe users of other distros can look here for guidance.
Comment 1 Jonas Stein gentoo-dev 2018-04-03 22:36:56 UTC
Thank you. This could be also interesting for others. 
Here is a collection of the distributions. Do they have more patches?

A tunnelling software, which was abandoned in 2001 is still worth to compile, but no one forks it?
Comment 2 Larry the Git Cow gentoo-dev 2020-09-15 21:24:29 UTC
The bug has been closed via the following commit(s):

commit 52dbb9774fa246374cd0f5a499e700e0c6a13aaf
Author:     Robin H. Johnson <>
AuthorDate: 2020-09-15 21:21:52 +0000
Commit:     Robin H. Johnson <>
CommitDate: 2020-09-15 21:24:02 +0000

    net-vpn/corkscrew: EAPI7 bump
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Robin H. Johnson <>

 net-vpn/corkscrew/corkscrew-2.0-r1.ebuild          | 40 ++++++++++++++++++++++
 .../files/corkscrew-2.0-crlf-with-authfile.patch   | 12 +++++++
 net-vpn/corkscrew/metadata.xml                     |  3 ++
 3 files changed, 55 insertions(+)