forked from Spritetm/libesphttpd
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change license to the Mozilla Public License, version 2.0
Why am I relicensing to MPL v2? I have a range of improvements that I'll be making to the library for use in a project I'm working on. I think it's fair that people be able to use these improvements in their applications, even for commercial applications, and that any improvements they make are shared back so everyone else can make use of them. The MPL v2 allows for static linking, something that is typically done for embedded applications, while also ensuring that the source code must be disclosed when the binary is distributed.
- Loading branch information
Showing
20 changed files
with
448 additions
and
74 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
HTTP auth implementation. Only does basic authentication for now. | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
#include <libesphttpd/esp8266.h> | ||
#include "libesphttpd/auth.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
Esp8266 http server - core routines | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
#include <libesphttpd/esp8266.h> | ||
#include "libesphttpd/httpd.h" | ||
#include "httpd-platform.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
Connector to let httpd use the espfs filesystem to serve the files in it. | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
#include <libesphttpd/esp8266.h> | ||
#include "libesphttpd/httpdespfs.h" | ||
#include "libesphttpd/espfs.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
This is a simple read-only implementation of a file system. It uses a block of data coming from the | ||
mkespfsimg tool, and can use that block to do abstracted operations on the files that are in there. | ||
It's written for use with httpd, but doesn't need to be used as such. | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
//These routines can also be tested by comping them in with the espfstest tool. This | ||
//simplifies debugging, but needs some slightly different headers. The #ifdef takes | ||
//care of that. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
//Stupid wraparound include to make sure object file doesn't end up in heatshrink dir | ||
#ifdef ESPFS_HEATSHRINK | ||
#include "../lib/heatshrink/heatshrink_encoder.c" | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
Some flash handling cgi routines. Used for updating the ESPFS/OTA image. | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
#include <libesphttpd/esp8266.h> | ||
#include "libesphttpd/cgiflash.h" | ||
#include "libesphttpd/espfs.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
Websocket support for esphttpd. Inspired by https://github.com/dangrie158/ESP-8266-WebSocket | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
#include <libesphttpd/esp8266.h> | ||
#include "libesphttpd/httpd.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
/* | ||
Cgi/template routines for the /wifi url. | ||
*/ | ||
|
||
/* | ||
* ---------------------------------------------------------------------------- | ||
* "THE BEER-WARE LICENSE" (Revision 42): | ||
* Jeroen Domburg <[email protected]> wrote this file. As long as you retain | ||
* this notice you can do whatever you want with this stuff. If we meet some day, | ||
* and you think this stuff is worth it, you can buy me a beer in return. | ||
* ---------------------------------------------------------------------------- | ||
*/ | ||
|
||
|
||
#include <libesphttpd/esp8266.h> | ||
#include "libesphttpd/cgiwifi.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f031a46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if @Spritetm gave you the permission to remove the notice?
And do I understand it right, if the license change is even legal, that MPL v2 does not force me to publish the whole source code of my software, but only the modifications I made to this component?
f031a46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did give @chmorgan permission to relicense my own stuff in esphttpd under the MPLv2: Spritetm#43 (comment)
f031a46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pathob on the second question yep. Section 3.2 appears to cover this but the best approach imo is to submit PRs back to here (or the most active fork) with the changes to the library so they can be considered for inclusion.
f031a46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pathob and part of the motivation for using MPL was to allow people to static link against closed source code.
f031a46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thank you guys. That were the answers I needed.
@chmorgan I wasn't sure if I understood it correctly. Makes sense, good choice!