Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531700 - net-misc/openvpn-2.3.6 fails to start with none/null ciphers
Summary: net-misc/openvpn-2.3.6 fails to start with none/null ciphers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL: http://community.openvpn.net/openvpn/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 18:29 UTC by Peter Gantner (a.k.a. nephros)
Modified: 2015-02-08 16:23 UTC (History)
1 user (show)

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


Attachments
fix-cipher-null.patch (fix-cipher-null.patch,735 bytes, patch)
2015-02-08 15:48 UTC, Peter Gantner (a.k.a. nephros)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gantner (a.k.a. nephros) 2014-12-04 18:29:44 UTC
Current stable net-misc/openvpn-2.3.6 has a bug that causes it so not start up if a null cipher is configured.

See link above for details and fix.

Reproducible: Always

Steps to Reproduce:
Start openvpn with a config file like this:

client
dev tun0
dev-type tap
proto udp
remote server.example.org 1194
nobind
daemon openvpn
ca   "0xff-keys/ca.crt"
cert "0xff-keys/client.crt"
key  "0xff-keys/client.key"
cipher none
ns-cert-type server

Actual Results:  
Thu Dec  4 19:11:51 2014 us=957211 OpenVPN 2.3.6 i686-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Dec  3 2014
Thu Dec  4 19:11:51 2014 us=957282 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
Thu Dec  4 19:11:51 2014 us=957692 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Dec  4 19:11:51 2014 us=973210 ******* WARNING *******: null cipher specified, no encryption will be used
Thu Dec  4 19:11:51 2014 us=973415 Assertion failed at crypto_openssl.c:523
Thu Dec  4 19:11:51 2014 us=973475 Exiting due to fatal error
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2015-02-08 14:53:52 UTC
Those patches don't seem to apply on straight 2.3.6.
Comment 2 Peter Gantner (a.k.a. nephros) 2015-02-08 15:48:06 UTC
Created attachment 395902 [details, diff]
fix-cipher-null.patch

I have this patch living in my /etc/portage/patches, it applies and fixes the problem described in the report.

I don't know the code well enough to say whether it has insecure side-effects, but then, you're running a VPN with a null cipher if you need this so...
Comment 3 Peter Gantner (a.k.a. nephros) 2015-02-08 15:55:48 UTC
(In reply to Peter Gantner (a.k.a. nephros) from comment #2)
> Created attachment 395902 [details, diff] [details, diff]
> 
> I have this patch living in my /etc/portage/patches, it applies and fixes
> the problem described in the report.


Just to clarify, this is identical to the last patch in the linked report (0001-Really-fix-cipher-none.patch), and AFAICS the only one needed.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2015-02-08 16:23:05 UTC
Thanks. Fixed in openvpn-2.3.6-r1.