Skip to content

Commit 4395b92

Browse files
committed
Relicense as dual Apache-2.0 + MIT
This changes the LICENSE file and adds license headers to most files to relicense under dual Apache-2.0 and MIT. This is helpful in that we retain the patent grant issued under Apache-2.0-licensed work, avoiding some sticky patent issues, while still allowing users who are more comfortable with the simpler MIT license to use that. See #659 for relicensing statements from code authors.
1 parent 093fcab commit 4395b92

File tree

110 files changed

+973
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+973
-25
lines changed

LICENSE LICENSE-APACHE

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/

LICENSE-MIT

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Permission is hereby granted, free of charge, to any person obtaining a copy of
2+
this software and associated documentation files (the "Software"), to deal in
3+
the Software without restriction, including without limitation the rights to
4+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
5+
the Software, and to permit persons to whom the Software is furnished to do so,
6+
subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all
9+
copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
13+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
14+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
15+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
This software is licensed under [Apache 2.0](LICENSE-APACHE) or
2+
[MIT](LICENSE-MIT), at your option.
3+
4+
Some files retain their own copyright notice, however, for full authorship
5+
information, see version control history.
6+
7+
Except as otherwise noted in individual files, all files in this repository are
8+
licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
9+
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
10+
http://opensource.org/licenses/MIT>, at your option.
11+
12+
You may not use, copy, modify, merge, publish, distribute, sublicense, and/or
13+
sell copies of this software or any files in this repository except in
14+
accordance with one or both of these licenses.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ Project Architecture
4848

4949
For a Rust-Lightning high-level API introduction, see [ARCH.md](ARCH.md).
5050

51-
License is Apache-2.0.
51+
License is either Apache-2.0 or MIT, at the option of the user (ie dual-license
52+
Apache-2.0 and MIT).

fuzz/src/bin/chanmon_consistency_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/chanmon_deser_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/full_stack_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_accept_channel_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_announcement_signatures_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_channel_announcement_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_channel_reestablish_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_channel_update_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_closing_signed_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_commitment_signed_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_decoded_onion_error_packet_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_error_message_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_funding_created_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_funding_locked_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_funding_signed_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_init_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_node_announcement_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_onion_hop_data_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_open_channel_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_ping_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_pong_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_revoke_and_ack_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_shutdown_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_update_add_htlc_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_update_fail_htlc_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_update_fail_malformed_htlc_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

fuzz/src/bin/msg_update_fee_target.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
110
// This file is auto-generated by gen_target.sh based on target_template.txt
211
// To modify it, modify target_template.txt and run gen_target.sh instead.
312

0 commit comments

Comments
 (0)