From 146b26349a13ecd1a7a3eb1fdb58d2a9f72d7444 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 10 Apr 2018 18:29:26 -0700 Subject: [PATCH] Make licensing explicit, add missing GPL file headers Since this repository has multi-licensed code, add GPL v2+ file headers to code that had no licensing blocks to make it obvious which files carry which license. And add "AND GPL-3.0-or-later" to extension.json's license-name property to make it clear that this extension does have code that isn't redistributable under GPL v2. Change-Id: Id3059fb9596527ef054bec9d89a28f1ccbe2113d --- extension.json | 2 +- includes/OATHAuthHooks.php | 16 ++++++++++++++++ includes/OATHAuthKey.php | 16 ++++++++++++++++ includes/OATHAuthUtils.php | 16 ++++++++++++++++ includes/OATHUser.php | 16 ++++++++++++++++ includes/OATHUserRepository.php | 16 ++++++++++++++++ includes/auth/TOTPAuthenticationRequest.php | 16 ++++++++++++++++ .../auth/TOTPSecondaryAuthenticationProvider.php | 16 ++++++++++++++++ includes/special/ProxySpecialPage.php | 16 ++++++++++++++++ includes/special/SpecialOATH.php | 16 ++++++++++++++++ includes/special/SpecialOATHDisable.php | 16 ++++++++++++++++ includes/special/SpecialOATHEnable.php | 16 ++++++++++++++++ 12 files changed, 177 insertions(+), 1 deletion(-) diff --git a/extension.json b/extension.json index d4074976..c6b58388 100644 --- a/extension.json +++ b/extension.json @@ -8,7 +8,7 @@ "requires": { "MediaWiki": ">= 1.31.0" }, - "license-name": "GPL-2.0-or-later", + "license-name": "GPL-2.0-or-later AND GPL-3.0-or-later", "AutoloadClasses": { "ApiOATHValidate": "includes/api/ApiOATHValidate.php", "ApiQueryOATH": "includes/api/ApiQueryOATH.php", diff --git a/includes/OATHAuthHooks.php b/includes/OATHAuthHooks.php index 4a091651..8842b16a 100644 --- a/includes/OATHAuthHooks.php +++ b/includes/OATHAuthHooks.php @@ -1,4 +1,20 @@