Skip to contentSkip to conversation

OpenVPN Linking Exception

Openvpn-devel David Sommerseth 3 participants 4 messages Feb 15, 2023 – Jul 4, 2023

lore
Share & tools
lore
#0 lore raw

OpenVPN 2.x is licensed under the GNU Public License v2.0 (GPL-2.0). This license has served us well in the past and we are not trying to change that. However, changes in licenses of our dependencies put us in an unfortunate situation.

Both mbed TLS and OpenSSL nowadays use the Apache 2.x license (APL-2). For the OpenSSL library we have a special exception that allows us linking with it. For newer mbed TLS versions, we cannot do this any more.

The APL-2 allows very liberal use of its source code when including it in other program (like BSD license). Unlike BSD licenses, the APL-2 has a few additions that position it better in today's legal landscape. It requires patent grant (in layman terms: you cannot contribute to an APL-2 licensed project and later sue someone for using your patents on the code you contributed). This is the most critical aspect where the APL-2 is incompatible with GPL-2.0 according to Free Software Foundation - <https://www.gnu.org/licenses/license-list.html#apache2>.

A short overview of APL-2 and license text can be found here:
<https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)#summary>

The OpenVPN community has discussed these issues with Pamela Chestek
<https://www.chesteklegal.com/> on the linking exception. She is a renowned open source license legal expert. Various options for this challenge have been studied and evaluated.

What is clear is that we will need a linking exception. The OpenSSL and
mbed TLS libraries may be considered system libraries on Linux systems but cannot be considered as such for distributions of the OpenVPN binary on Windows, macOS or Android.

The proposed linking exception for OpenVPN:

In addition, as a special exception, OpenVPN Inc and the contributors give permission to link the code of this program to libraries (the "Libraries") licensed under the Apache License version 2.0 (this work and any linked library the "Combined Work") and copy and distribute the Combined Work without an obligation to license the Libraries under the GNU General Public License v2 (GPL-2.0) as required by Section 2 of the GPL-2.0, and without an obligation to refrain from imposing any additional restrictions in the Apache License version 2 that are not in the GPL-2.0, as required by Section 6 of the GPL-2.0. You must comply with the GPL-2.0 in all other respects for the Combined Work, including the obligation to provide source code. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

This exception is the verbatim copy from Pamela Chestek, and the content
in this copy above has been reviewed by her. There is some legalese
phrases there (in particular related to "Combined work") which may seem odd, but this is common practice in legal definitions.

In plain non-legalese English this basically says:

* The intention for this license exception is to allow OpenVPN to be linked against APL-2 licensed libraries, even where the GPL-2.0 and APL-2 licenses conflict from a legal perspective.

* OpenVPN itself will stay GPL-2.0 and the code belonging to the OpenVPN project must comply to the GPL-2.0 license. This is NOT dual-licensing of the OpenVPN code base.

* This license exception DOES NOT require NOR expect a license change of the APL-2 based library. This exception allows using the APL-2 library as-is. However, when distributing a compiled OpenVPN binary linking against APL-2 libraries ("Combined Work"), the REQUIREMENT is that the APL-2 library MUST also be available on similar terms as in GPL-2.0, like providing the source code of the library upon request, except in the two specific ways mentioned.

* If the APL-2 based library forbids such linking and distribution, this license exception DOES NOT overrule the restriction of the APL-2 based library. If the APL-2 library cannot satisfy the requirements in this license exception, you CANNOT distribute an OpenVPN binary linked with this library.

I hope we can reach an agreement and replace the current OpenSSL linking exception with this new exception above.

Signature · 4 lines
kind regards,

David Sommerseth
OpenVPN Inc
#1 lore raw

Re: [Openvpn-devel] OpenVPN Linking Exception - current status report

Am 15.02.23 um 13:31 schrieb David Sommerseth:

Quoted 2 lines

OpenVPN 2.x is licensed under the GNU Public License v2.0 (GPL-2.0). This license has served us well in the past and we are not trying to change that.  However, changes in licenses of our dependencies put us in an unfortunate situation.

So a good amount of time has passed and we got a lot of positive feedback to the license agreement. We got 107 positive responses back contributors including a positive one from Fox IT that covers all Fox It employers and a positive one from OpenVPN Inc that cover all code that OpenVPN Inc owns. And big thanks to everyone who said yes so far.

With that we are down to a small number of people (10) that are still missing acknowledgment.

Note that the actions for the individual source are my opinion/suggestions.

- Jason A. Donenfeld <[email protected]...>

Has stated to me in a private IRC message that I should bothering him about this. Only negative reaction so far.

* Support fingerprint authentication without CA certificate

The original v1 patch of this has been significantly rewritten/changed by me. We need to check which parts of the v3 patch that of the original patch can be still attributed to Jason and rewrite that part unless we still get a positive reaction.

- James Bottomley <[email protected]...>

No response to my license email, however was active this year on the
mailing list.

* Add unit tests for engine keys
* engine key support

This commits are only relevant for OpenSSL 1.x and we can probably remove support for this feature again if James does not positively.

- Josh Cepek <[email protected]...>

No response at all to my emails. Commits were in 2013 and 2016

All seven commits look trivial to me. Need someone else to form an
opinion if this can be seen as trivial in total or not.

- Guido Vranken <[email protected]...>

No response at all to my emails. Commit are in 2017.

- 7 smallish commit, not sure if they are trivial. Best to try to reach this person
- might be part of some security audit, need to double check if there are some strings attached to that.

- Jérémie Courrèges-Anglas <[email protected]...>

- raised the question if we can keep the OpenSSL license exception forever to keep LibreSSL support. I think that is reasonable to just keep the outdated exception even if it is just for a handful of people using OpenVPN with LibreSSL. When we drafted the mails we proposed to remove this because we overlooked LibreSSL.

* Print time_t as long long and suseconds_t as long probably not trivial.
* Rest of the commits look very small and can probably classified as trivial

- Andris Kalnozols <[email protected]...>

Address bounces, could not find any alternative method of contacting this person. three commits:

* extract_x509_extension(): hide status message during normal
operation.
* Fix some typos in the man page.

trivial

* Do not upcase x509-username-field for mixed-case arguments. non-trivial needs more investigation.

- Mathieu GIANNECCHINI <[email protected]...>

Mail address bounces, could not find an alternative contact.
--tls-export-cert option only

One commit having the following feature:

"--tls-export-cert [directory] : Get peer cert in PEM format and
store it \n"
" in an openvpn temporary file in [directory]. Peer
cert is \n"
" stored before tls-verify script execution and
deleted after.\n"

We can remove the feature, it seems a corner case. If someone needs it can still be reimplemented.

- Holger Kummert <[email protected]...>

Reached out to other ex-Sophos employees, will try to contact him.

One commit bordering on trivial.

- Markus Koetter <[email protected]...>

Email address bounces, found no alternative contact method. One
commit in 2011

  Add extv3 X509 field support to --x509-username-field

Needs --enable-x509-alt-username configure option to be enabled, not enabled by default.

- Vasily Kulikov <[email protected]...>

No response so far. Would be probably good to check for alternative email address

One trivial commit and

* Mac OS X Keychain management client

contrib/keychain-mcd already removed since it had code quality issues.

Code for management-external-cert still in OpenVPN, is not trivial

Arne

#2 lore raw

Re: [Openvpn-devel] OpenVPN Linking Exception - current status report

Quoted 20 lines · Arne Schwabe

Am 15.02.23 um 13:31 schrieb David Sommerseth:

Quoted 5 lines

OpenVPN 2.x is licensed under the GNU Public License v2.0 (GPL-2.0). This license has served us well in the past and we are not trying to change that.  However, changes in licenses of our dependencies put us in an unfortunate situation.

So a good amount of time has passed and we got a lot of positive feedback to the license agreement. We got 107 positive responses back contributors including a positive one from Fox IT that covers all Fox It employers and a positive one from OpenVPN Inc that cover all code that OpenVPN Inc owns. And big thanks to everyone who said yes so far.

With that we are down to a small number of people (10) that are still missing acknowledgment.

Note that the actions for the individual source are my opinion/suggestions.

[...]

Quoted 7 lines

- Josh Cepek <[email protected]...>

No response at all to my emails. Commits were in 2013 and 2016

All seven commits look trivial to me. Need someone else to form an opinion
if this can be seen as trivial in total or not.

I have reviewed his patches and I agree that they are all individual bug fixes and are all individually trivial.

Regards,

Signature · 1 line
  Frank Lichtenheld
#3 lore raw

Re: [Openvpn-devel] OpenVPN Linking Exception - current status report update July

In reply to David Sommerseth

Am 15.02.23 um 13:31 schrieb David Sommerseth:

Quoted 2 lines

OpenVPN 2.x is licensed under the GNU Public License v2.0 (GPL-2.0). This license has served us well in the past and we are not trying to change that.  However, changes in licenses of our dependencies put us in an unfortunate situation.

Since the last update, we resolved the license approval for a number of contributors and are now down to just

Note that the actions for the individual source are my opinion/suggestions.

- Jason A. Donenfeld <[email protected]...>

- Patches to remove possible contribution on mailing list

- James Bottomley <[email protected]...>

No response to my license email, however was active this year on
the mailing list.

* Add unit tests for engine keys
* engine key support

This commits are only relevant for OpenSSL 1.x and we can probably remove support for this feature again if James does not positively.

- Jérémie Courrèges-Anglas <[email protected]...>

- raised the question if we can keep the OpenSSL license exception forever to keep LibreSSL support. I think that is reasonable to just keep the outdated exception even if it is just for a handful of people using OpenVPN with LibreSSL. When we drafted the mails we proposed to remove this because we overlooked LibreSSL.

* Print time_t as long long and suseconds_t as long probably not trivial.
* Rest of the commits look very small and can probably classified
as trivial

- Andris Kalnozols <[email protected]...>

Address bounces, could not find any alternative method of contacting this person. three commits:

* extract_x509_extension(): hide status message during normal
operation.
* Fix some typos in the man page.

trivial

* Do not upcase x509-username-field for mixed-case arguments. non-trivial needs more investigation.

- Mathieu GIANNECCHINI <[email protected]...>

Mail address bounces, could not find an alternative contact.
--tls-export-cert option only

One commit having the following feature:

"--tls-export-cert [directory] : Get peer cert in PEM format and
store it \n"
" in an openvpn temporary file in [directory]. Peer
cert is \n"
" stored before tls-verify script execution and
deleted after.\n"

We can remove the feature, it seems a corner case. If someone needs it can still be reimplemented.

Arne

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel