1a8e1175bSopenharmony_ciMbed TLS files are provided under a dual [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html)
2a8e1175bSopenharmony_ciOR [GPL-2.0-or-later](https://spdx.org/licenses/GPL-2.0-or-later.html) license.
3a8e1175bSopenharmony_ciThis means that users may choose which of these licenses they take the code
4a8e1175bSopenharmony_ciunder.
5a8e1175bSopenharmony_ci
6a8e1175bSopenharmony_ciThe full text of each of these licenses is given below.
7a8e1175bSopenharmony_ci
8a8e1175bSopenharmony_ci
9a8e1175bSopenharmony_ci                                 Apache License
10a8e1175bSopenharmony_ci                           Version 2.0, January 2004
11a8e1175bSopenharmony_ci                        http://www.apache.org/licenses/
12a8e1175bSopenharmony_ci
13a8e1175bSopenharmony_ci   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14a8e1175bSopenharmony_ci
15a8e1175bSopenharmony_ci   1. Definitions.
16a8e1175bSopenharmony_ci
17a8e1175bSopenharmony_ci      "License" shall mean the terms and conditions for use, reproduction,
18a8e1175bSopenharmony_ci      and distribution as defined by Sections 1 through 9 of this document.
19a8e1175bSopenharmony_ci
20a8e1175bSopenharmony_ci      "Licensor" shall mean the copyright owner or entity authorized by
21a8e1175bSopenharmony_ci      the copyright owner that is granting the License.
22a8e1175bSopenharmony_ci
23a8e1175bSopenharmony_ci      "Legal Entity" shall mean the union of the acting entity and all
24a8e1175bSopenharmony_ci      other entities that control, are controlled by, or are under common
25a8e1175bSopenharmony_ci      control with that entity. For the purposes of this definition,
26a8e1175bSopenharmony_ci      "control" means (i) the power, direct or indirect, to cause the
27a8e1175bSopenharmony_ci      direction or management of such entity, whether by contract or
28a8e1175bSopenharmony_ci      otherwise, or (ii) ownership of fifty percent (50%) or more of the
29a8e1175bSopenharmony_ci      outstanding shares, or (iii) beneficial ownership of such entity.
30a8e1175bSopenharmony_ci
31a8e1175bSopenharmony_ci      "You" (or "Your") shall mean an individual or Legal Entity
32a8e1175bSopenharmony_ci      exercising permissions granted by this License.
33a8e1175bSopenharmony_ci
34a8e1175bSopenharmony_ci      "Source" form shall mean the preferred form for making modifications,
35a8e1175bSopenharmony_ci      including but not limited to software source code, documentation
36a8e1175bSopenharmony_ci      source, and configuration files.
37a8e1175bSopenharmony_ci
38a8e1175bSopenharmony_ci      "Object" form shall mean any form resulting from mechanical
39a8e1175bSopenharmony_ci      transformation or translation of a Source form, including but
40a8e1175bSopenharmony_ci      not limited to compiled object code, generated documentation,
41a8e1175bSopenharmony_ci      and conversions to other media types.
42a8e1175bSopenharmony_ci
43a8e1175bSopenharmony_ci      "Work" shall mean the work of authorship, whether in Source or
44a8e1175bSopenharmony_ci      Object form, made available under the License, as indicated by a
45a8e1175bSopenharmony_ci      copyright notice that is included in or attached to the work
46a8e1175bSopenharmony_ci      (an example is provided in the Appendix below).
47a8e1175bSopenharmony_ci
48a8e1175bSopenharmony_ci      "Derivative Works" shall mean any work, whether in Source or Object
49a8e1175bSopenharmony_ci      form, that is based on (or derived from) the Work and for which the
50a8e1175bSopenharmony_ci      editorial revisions, annotations, elaborations, or other modifications
51a8e1175bSopenharmony_ci      represent, as a whole, an original work of authorship. For the purposes
52a8e1175bSopenharmony_ci      of this License, Derivative Works shall not include works that remain
53a8e1175bSopenharmony_ci      separable from, or merely link (or bind by name) to the interfaces of,
54a8e1175bSopenharmony_ci      the Work and Derivative Works thereof.
55a8e1175bSopenharmony_ci
56a8e1175bSopenharmony_ci      "Contribution" shall mean any work of authorship, including
57a8e1175bSopenharmony_ci      the original version of the Work and any modifications or additions
58a8e1175bSopenharmony_ci      to that Work or Derivative Works thereof, that is intentionally
59a8e1175bSopenharmony_ci      submitted to Licensor for inclusion in the Work by the copyright owner
60a8e1175bSopenharmony_ci      or by an individual or Legal Entity authorized to submit on behalf of
61a8e1175bSopenharmony_ci      the copyright owner. For the purposes of this definition, "submitted"
62a8e1175bSopenharmony_ci      means any form of electronic, verbal, or written communication sent
63a8e1175bSopenharmony_ci      to the Licensor or its representatives, including but not limited to
64a8e1175bSopenharmony_ci      communication on electronic mailing lists, source code control systems,
65a8e1175bSopenharmony_ci      and issue tracking systems that are managed by, or on behalf of, the
66a8e1175bSopenharmony_ci      Licensor for the purpose of discussing and improving the Work, but
67a8e1175bSopenharmony_ci      excluding communication that is conspicuously marked or otherwise
68a8e1175bSopenharmony_ci      designated in writing by the copyright owner as "Not a Contribution."
69a8e1175bSopenharmony_ci
70a8e1175bSopenharmony_ci      "Contributor" shall mean Licensor and any individual or Legal Entity
71a8e1175bSopenharmony_ci      on behalf of whom a Contribution has been received by Licensor and
72a8e1175bSopenharmony_ci      subsequently incorporated within the Work.
73a8e1175bSopenharmony_ci
74a8e1175bSopenharmony_ci   2. Grant of Copyright License. Subject to the terms and conditions of
75a8e1175bSopenharmony_ci      this License, each Contributor hereby grants to You a perpetual,
76a8e1175bSopenharmony_ci      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77a8e1175bSopenharmony_ci      copyright license to reproduce, prepare Derivative Works of,
78a8e1175bSopenharmony_ci      publicly display, publicly perform, sublicense, and distribute the
79a8e1175bSopenharmony_ci      Work and such Derivative Works in Source or Object form.
80a8e1175bSopenharmony_ci
81a8e1175bSopenharmony_ci   3. Grant of Patent License. Subject to the terms and conditions of
82a8e1175bSopenharmony_ci      this License, each Contributor hereby grants to You a perpetual,
83a8e1175bSopenharmony_ci      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84a8e1175bSopenharmony_ci      (except as stated in this section) patent license to make, have made,
85a8e1175bSopenharmony_ci      use, offer to sell, sell, import, and otherwise transfer the Work,
86a8e1175bSopenharmony_ci      where such license applies only to those patent claims licensable
87a8e1175bSopenharmony_ci      by such Contributor that are necessarily infringed by their
88a8e1175bSopenharmony_ci      Contribution(s) alone or by combination of their Contribution(s)
89a8e1175bSopenharmony_ci      with the Work to which such Contribution(s) was submitted. If You
90a8e1175bSopenharmony_ci      institute patent litigation against any entity (including a
91a8e1175bSopenharmony_ci      cross-claim or counterclaim in a lawsuit) alleging that the Work
92a8e1175bSopenharmony_ci      or a Contribution incorporated within the Work constitutes direct
93a8e1175bSopenharmony_ci      or contributory patent infringement, then any patent licenses
94a8e1175bSopenharmony_ci      granted to You under this License for that Work shall terminate
95a8e1175bSopenharmony_ci      as of the date such litigation is filed.
96a8e1175bSopenharmony_ci
97a8e1175bSopenharmony_ci   4. Redistribution. You may reproduce and distribute copies of the
98a8e1175bSopenharmony_ci      Work or Derivative Works thereof in any medium, with or without
99a8e1175bSopenharmony_ci      modifications, and in Source or Object form, provided that You
100a8e1175bSopenharmony_ci      meet the following conditions:
101a8e1175bSopenharmony_ci
102a8e1175bSopenharmony_ci      (a) You must give any other recipients of the Work or
103a8e1175bSopenharmony_ci          Derivative Works a copy of this License; and
104a8e1175bSopenharmony_ci
105a8e1175bSopenharmony_ci      (b) You must cause any modified files to carry prominent notices
106a8e1175bSopenharmony_ci          stating that You changed the files; and
107a8e1175bSopenharmony_ci
108a8e1175bSopenharmony_ci      (c) You must retain, in the Source form of any Derivative Works
109a8e1175bSopenharmony_ci          that You distribute, all copyright, patent, trademark, and
110a8e1175bSopenharmony_ci          attribution notices from the Source form of the Work,
111a8e1175bSopenharmony_ci          excluding those notices that do not pertain to any part of
112a8e1175bSopenharmony_ci          the Derivative Works; and
113a8e1175bSopenharmony_ci
114a8e1175bSopenharmony_ci      (d) If the Work includes a "NOTICE" text file as part of its
115a8e1175bSopenharmony_ci          distribution, then any Derivative Works that You distribute must
116a8e1175bSopenharmony_ci          include a readable copy of the attribution notices contained
117a8e1175bSopenharmony_ci          within such NOTICE file, excluding those notices that do not
118a8e1175bSopenharmony_ci          pertain to any part of the Derivative Works, in at least one
119a8e1175bSopenharmony_ci          of the following places: within a NOTICE text file distributed
120a8e1175bSopenharmony_ci          as part of the Derivative Works; within the Source form or
121a8e1175bSopenharmony_ci          documentation, if provided along with the Derivative Works; or,
122a8e1175bSopenharmony_ci          within a display generated by the Derivative Works, if and
123a8e1175bSopenharmony_ci          wherever such third-party notices normally appear. The contents
124a8e1175bSopenharmony_ci          of the NOTICE file are for informational purposes only and
125a8e1175bSopenharmony_ci          do not modify the License. You may add Your own attribution
126a8e1175bSopenharmony_ci          notices within Derivative Works that You distribute, alongside
127a8e1175bSopenharmony_ci          or as an addendum to the NOTICE text from the Work, provided
128a8e1175bSopenharmony_ci          that such additional attribution notices cannot be construed
129a8e1175bSopenharmony_ci          as modifying the License.
130a8e1175bSopenharmony_ci
131a8e1175bSopenharmony_ci      You may add Your own copyright statement to Your modifications and
132a8e1175bSopenharmony_ci      may provide additional or different license terms and conditions
133a8e1175bSopenharmony_ci      for use, reproduction, or distribution of Your modifications, or
134a8e1175bSopenharmony_ci      for any such Derivative Works as a whole, provided Your use,
135a8e1175bSopenharmony_ci      reproduction, and distribution of the Work otherwise complies with
136a8e1175bSopenharmony_ci      the conditions stated in this License.
137a8e1175bSopenharmony_ci
138a8e1175bSopenharmony_ci   5. Submission of Contributions. Unless You explicitly state otherwise,
139a8e1175bSopenharmony_ci      any Contribution intentionally submitted for inclusion in the Work
140a8e1175bSopenharmony_ci      by You to the Licensor shall be under the terms and conditions of
141a8e1175bSopenharmony_ci      this License, without any additional terms or conditions.
142a8e1175bSopenharmony_ci      Notwithstanding the above, nothing herein shall supersede or modify
143a8e1175bSopenharmony_ci      the terms of any separate license agreement you may have executed
144a8e1175bSopenharmony_ci      with Licensor regarding such Contributions.
145a8e1175bSopenharmony_ci
146a8e1175bSopenharmony_ci   6. Trademarks. This License does not grant permission to use the trade
147a8e1175bSopenharmony_ci      names, trademarks, service marks, or product names of the Licensor,
148a8e1175bSopenharmony_ci      except as required for reasonable and customary use in describing the
149a8e1175bSopenharmony_ci      origin of the Work and reproducing the content of the NOTICE file.
150a8e1175bSopenharmony_ci
151a8e1175bSopenharmony_ci   7. Disclaimer of Warranty. Unless required by applicable law or
152a8e1175bSopenharmony_ci      agreed to in writing, Licensor provides the Work (and each
153a8e1175bSopenharmony_ci      Contributor provides its Contributions) on an "AS IS" BASIS,
154a8e1175bSopenharmony_ci      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155a8e1175bSopenharmony_ci      implied, including, without limitation, any warranties or conditions
156a8e1175bSopenharmony_ci      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157a8e1175bSopenharmony_ci      PARTICULAR PURPOSE. You are solely responsible for determining the
158a8e1175bSopenharmony_ci      appropriateness of using or redistributing the Work and assume any
159a8e1175bSopenharmony_ci      risks associated with Your exercise of permissions under this License.
160a8e1175bSopenharmony_ci
161a8e1175bSopenharmony_ci   8. Limitation of Liability. In no event and under no legal theory,
162a8e1175bSopenharmony_ci      whether in tort (including negligence), contract, or otherwise,
163a8e1175bSopenharmony_ci      unless required by applicable law (such as deliberate and grossly
164a8e1175bSopenharmony_ci      negligent acts) or agreed to in writing, shall any Contributor be
165a8e1175bSopenharmony_ci      liable to You for damages, including any direct, indirect, special,
166a8e1175bSopenharmony_ci      incidental, or consequential damages of any character arising as a
167a8e1175bSopenharmony_ci      result of this License or out of the use or inability to use the
168a8e1175bSopenharmony_ci      Work (including but not limited to damages for loss of goodwill,
169a8e1175bSopenharmony_ci      work stoppage, computer failure or malfunction, or any and all
170a8e1175bSopenharmony_ci      other commercial damages or losses), even if such Contributor
171a8e1175bSopenharmony_ci      has been advised of the possibility of such damages.
172a8e1175bSopenharmony_ci
173a8e1175bSopenharmony_ci   9. Accepting Warranty or Additional Liability. While redistributing
174a8e1175bSopenharmony_ci      the Work or Derivative Works thereof, You may choose to offer,
175a8e1175bSopenharmony_ci      and charge a fee for, acceptance of support, warranty, indemnity,
176a8e1175bSopenharmony_ci      or other liability obligations and/or rights consistent with this
177a8e1175bSopenharmony_ci      License. However, in accepting such obligations, You may act only
178a8e1175bSopenharmony_ci      on Your own behalf and on Your sole responsibility, not on behalf
179a8e1175bSopenharmony_ci      of any other Contributor, and only if You agree to indemnify,
180a8e1175bSopenharmony_ci      defend, and hold each Contributor harmless for any liability
181a8e1175bSopenharmony_ci      incurred by, or claims asserted against, such Contributor by reason
182a8e1175bSopenharmony_ci      of your accepting any such warranty or additional liability.
183a8e1175bSopenharmony_ci
184a8e1175bSopenharmony_ci   END OF TERMS AND CONDITIONS
185a8e1175bSopenharmony_ci
186a8e1175bSopenharmony_ci   APPENDIX: How to apply the Apache License to your work.
187a8e1175bSopenharmony_ci
188a8e1175bSopenharmony_ci      To apply the Apache License to your work, attach the following
189a8e1175bSopenharmony_ci      boilerplate notice, with the fields enclosed by brackets "[]"
190a8e1175bSopenharmony_ci      replaced with your own identifying information. (Don't include
191a8e1175bSopenharmony_ci      the brackets!)  The text should be enclosed in the appropriate
192a8e1175bSopenharmony_ci      comment syntax for the file format. We also recommend that a
193a8e1175bSopenharmony_ci      file or class name and description of purpose be included on the
194a8e1175bSopenharmony_ci      same "printed page" as the copyright notice for easier
195a8e1175bSopenharmony_ci      identification within third-party archives.
196a8e1175bSopenharmony_ci
197a8e1175bSopenharmony_ci   Copyright [yyyy] [name of copyright owner]
198a8e1175bSopenharmony_ci
199a8e1175bSopenharmony_ci   Licensed under the Apache License, Version 2.0 (the "License");
200a8e1175bSopenharmony_ci   you may not use this file except in compliance with the License.
201a8e1175bSopenharmony_ci   You may obtain a copy of the License at
202a8e1175bSopenharmony_ci
203a8e1175bSopenharmony_ci       http://www.apache.org/licenses/LICENSE-2.0
204a8e1175bSopenharmony_ci
205a8e1175bSopenharmony_ci   Unless required by applicable law or agreed to in writing, software
206a8e1175bSopenharmony_ci   distributed under the License is distributed on an "AS IS" BASIS,
207a8e1175bSopenharmony_ci   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
208a8e1175bSopenharmony_ci   See the License for the specific language governing permissions and
209a8e1175bSopenharmony_ci   limitations under the License.
210a8e1175bSopenharmony_ci
211a8e1175bSopenharmony_ci
212a8e1175bSopenharmony_ci===============================================================================
213a8e1175bSopenharmony_ci
214a8e1175bSopenharmony_ci
215a8e1175bSopenharmony_ci                    GNU GENERAL PUBLIC LICENSE
216a8e1175bSopenharmony_ci                       Version 2, June 1991
217a8e1175bSopenharmony_ci
218a8e1175bSopenharmony_ci Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
219a8e1175bSopenharmony_ci 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
220a8e1175bSopenharmony_ci Everyone is permitted to copy and distribute verbatim copies
221a8e1175bSopenharmony_ci of this license document, but changing it is not allowed.
222a8e1175bSopenharmony_ci
223a8e1175bSopenharmony_ci                            Preamble
224a8e1175bSopenharmony_ci
225a8e1175bSopenharmony_ci  The licenses for most software are designed to take away your
226a8e1175bSopenharmony_cifreedom to share and change it.  By contrast, the GNU General Public
227a8e1175bSopenharmony_ciLicense is intended to guarantee your freedom to share and change free
228a8e1175bSopenharmony_cisoftware--to make sure the software is free for all its users.  This
229a8e1175bSopenharmony_ciGeneral Public License applies to most of the Free Software
230a8e1175bSopenharmony_ciFoundation's software and to any other program whose authors commit to
231a8e1175bSopenharmony_ciusing it.  (Some other Free Software Foundation software is covered by
232a8e1175bSopenharmony_cithe GNU Lesser General Public License instead.)  You can apply it to
233a8e1175bSopenharmony_ciyour programs, too.
234a8e1175bSopenharmony_ci
235a8e1175bSopenharmony_ci  When we speak of free software, we are referring to freedom, not
236a8e1175bSopenharmony_ciprice.  Our General Public Licenses are designed to make sure that you
237a8e1175bSopenharmony_cihave the freedom to distribute copies of free software (and charge for
238a8e1175bSopenharmony_cithis service if you wish), that you receive source code or can get it
239a8e1175bSopenharmony_ciif you want it, that you can change the software or use pieces of it
240a8e1175bSopenharmony_ciin new free programs; and that you know you can do these things.
241a8e1175bSopenharmony_ci
242a8e1175bSopenharmony_ci  To protect your rights, we need to make restrictions that forbid
243a8e1175bSopenharmony_cianyone to deny you these rights or to ask you to surrender the rights.
244a8e1175bSopenharmony_ciThese restrictions translate to certain responsibilities for you if you
245a8e1175bSopenharmony_cidistribute copies of the software, or if you modify it.
246a8e1175bSopenharmony_ci
247a8e1175bSopenharmony_ci  For example, if you distribute copies of such a program, whether
248a8e1175bSopenharmony_cigratis or for a fee, you must give the recipients all the rights that
249a8e1175bSopenharmony_ciyou have.  You must make sure that they, too, receive or can get the
250a8e1175bSopenharmony_cisource code.  And you must show them these terms so they know their
251a8e1175bSopenharmony_cirights.
252a8e1175bSopenharmony_ci
253a8e1175bSopenharmony_ci  We protect your rights with two steps: (1) copyright the software, and
254a8e1175bSopenharmony_ci(2) offer you this license which gives you legal permission to copy,
255a8e1175bSopenharmony_cidistribute and/or modify the software.
256a8e1175bSopenharmony_ci
257a8e1175bSopenharmony_ci  Also, for each author's protection and ours, we want to make certain
258a8e1175bSopenharmony_cithat everyone understands that there is no warranty for this free
259a8e1175bSopenharmony_cisoftware.  If the software is modified by someone else and passed on, we
260a8e1175bSopenharmony_ciwant its recipients to know that what they have is not the original, so
261a8e1175bSopenharmony_cithat any problems introduced by others will not reflect on the original
262a8e1175bSopenharmony_ciauthors' reputations.
263a8e1175bSopenharmony_ci
264a8e1175bSopenharmony_ci  Finally, any free program is threatened constantly by software
265a8e1175bSopenharmony_cipatents.  We wish to avoid the danger that redistributors of a free
266a8e1175bSopenharmony_ciprogram will individually obtain patent licenses, in effect making the
267a8e1175bSopenharmony_ciprogram proprietary.  To prevent this, we have made it clear that any
268a8e1175bSopenharmony_cipatent must be licensed for everyone's free use or not licensed at all.
269a8e1175bSopenharmony_ci
270a8e1175bSopenharmony_ci  The precise terms and conditions for copying, distribution and
271a8e1175bSopenharmony_cimodification follow.
272a8e1175bSopenharmony_ci
273a8e1175bSopenharmony_ci                    GNU GENERAL PUBLIC LICENSE
274a8e1175bSopenharmony_ci   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
275a8e1175bSopenharmony_ci
276a8e1175bSopenharmony_ci  0. This License applies to any program or other work which contains
277a8e1175bSopenharmony_cia notice placed by the copyright holder saying it may be distributed
278a8e1175bSopenharmony_ciunder the terms of this General Public License.  The "Program", below,
279a8e1175bSopenharmony_cirefers to any such program or work, and a "work based on the Program"
280a8e1175bSopenharmony_cimeans either the Program or any derivative work under copyright law:
281a8e1175bSopenharmony_cithat is to say, a work containing the Program or a portion of it,
282a8e1175bSopenharmony_cieither verbatim or with modifications and/or translated into another
283a8e1175bSopenharmony_cilanguage.  (Hereinafter, translation is included without limitation in
284a8e1175bSopenharmony_cithe term "modification".)  Each licensee is addressed as "you".
285a8e1175bSopenharmony_ci
286a8e1175bSopenharmony_ciActivities other than copying, distribution and modification are not
287a8e1175bSopenharmony_cicovered by this License; they are outside its scope.  The act of
288a8e1175bSopenharmony_cirunning the Program is not restricted, and the output from the Program
289a8e1175bSopenharmony_ciis covered only if its contents constitute a work based on the
290a8e1175bSopenharmony_ciProgram (independent of having been made by running the Program).
291a8e1175bSopenharmony_ciWhether that is true depends on what the Program does.
292a8e1175bSopenharmony_ci
293a8e1175bSopenharmony_ci  1. You may copy and distribute verbatim copies of the Program's
294a8e1175bSopenharmony_cisource code as you receive it, in any medium, provided that you
295a8e1175bSopenharmony_ciconspicuously and appropriately publish on each copy an appropriate
296a8e1175bSopenharmony_cicopyright notice and disclaimer of warranty; keep intact all the
297a8e1175bSopenharmony_cinotices that refer to this License and to the absence of any warranty;
298a8e1175bSopenharmony_ciand give any other recipients of the Program a copy of this License
299a8e1175bSopenharmony_cialong with the Program.
300a8e1175bSopenharmony_ci
301a8e1175bSopenharmony_ciYou may charge a fee for the physical act of transferring a copy, and
302a8e1175bSopenharmony_ciyou may at your option offer warranty protection in exchange for a fee.
303a8e1175bSopenharmony_ci
304a8e1175bSopenharmony_ci  2. You may modify your copy or copies of the Program or any portion
305a8e1175bSopenharmony_ciof it, thus forming a work based on the Program, and copy and
306a8e1175bSopenharmony_cidistribute such modifications or work under the terms of Section 1
307a8e1175bSopenharmony_ciabove, provided that you also meet all of these conditions:
308a8e1175bSopenharmony_ci
309a8e1175bSopenharmony_ci    a) You must cause the modified files to carry prominent notices
310a8e1175bSopenharmony_ci    stating that you changed the files and the date of any change.
311a8e1175bSopenharmony_ci
312a8e1175bSopenharmony_ci    b) You must cause any work that you distribute or publish, that in
313a8e1175bSopenharmony_ci    whole or in part contains or is derived from the Program or any
314a8e1175bSopenharmony_ci    part thereof, to be licensed as a whole at no charge to all third
315a8e1175bSopenharmony_ci    parties under the terms of this License.
316a8e1175bSopenharmony_ci
317a8e1175bSopenharmony_ci    c) If the modified program normally reads commands interactively
318a8e1175bSopenharmony_ci    when run, you must cause it, when started running for such
319a8e1175bSopenharmony_ci    interactive use in the most ordinary way, to print or display an
320a8e1175bSopenharmony_ci    announcement including an appropriate copyright notice and a
321a8e1175bSopenharmony_ci    notice that there is no warranty (or else, saying that you provide
322a8e1175bSopenharmony_ci    a warranty) and that users may redistribute the program under
323a8e1175bSopenharmony_ci    these conditions, and telling the user how to view a copy of this
324a8e1175bSopenharmony_ci    License.  (Exception: if the Program itself is interactive but
325a8e1175bSopenharmony_ci    does not normally print such an announcement, your work based on
326a8e1175bSopenharmony_ci    the Program is not required to print an announcement.)
327a8e1175bSopenharmony_ci
328a8e1175bSopenharmony_ciThese requirements apply to the modified work as a whole.  If
329a8e1175bSopenharmony_ciidentifiable sections of that work are not derived from the Program,
330a8e1175bSopenharmony_ciand can be reasonably considered independent and separate works in
331a8e1175bSopenharmony_cithemselves, then this License, and its terms, do not apply to those
332a8e1175bSopenharmony_cisections when you distribute them as separate works.  But when you
333a8e1175bSopenharmony_cidistribute the same sections as part of a whole which is a work based
334a8e1175bSopenharmony_cion the Program, the distribution of the whole must be on the terms of
335a8e1175bSopenharmony_cithis License, whose permissions for other licensees extend to the
336a8e1175bSopenharmony_cientire whole, and thus to each and every part regardless of who wrote it.
337a8e1175bSopenharmony_ci
338a8e1175bSopenharmony_ciThus, it is not the intent of this section to claim rights or contest
339a8e1175bSopenharmony_ciyour rights to work written entirely by you; rather, the intent is to
340a8e1175bSopenharmony_ciexercise the right to control the distribution of derivative or
341a8e1175bSopenharmony_cicollective works based on the Program.
342a8e1175bSopenharmony_ci
343a8e1175bSopenharmony_ciIn addition, mere aggregation of another work not based on the Program
344a8e1175bSopenharmony_ciwith the Program (or with a work based on the Program) on a volume of
345a8e1175bSopenharmony_cia storage or distribution medium does not bring the other work under
346a8e1175bSopenharmony_cithe scope of this License.
347a8e1175bSopenharmony_ci
348a8e1175bSopenharmony_ci  3. You may copy and distribute the Program (or a work based on it,
349a8e1175bSopenharmony_ciunder Section 2) in object code or executable form under the terms of
350a8e1175bSopenharmony_ciSections 1 and 2 above provided that you also do one of the following:
351a8e1175bSopenharmony_ci
352a8e1175bSopenharmony_ci    a) Accompany it with the complete corresponding machine-readable
353a8e1175bSopenharmony_ci    source code, which must be distributed under the terms of Sections
354a8e1175bSopenharmony_ci    1 and 2 above on a medium customarily used for software interchange; or,
355a8e1175bSopenharmony_ci
356a8e1175bSopenharmony_ci    b) Accompany it with a written offer, valid for at least three
357a8e1175bSopenharmony_ci    years, to give any third party, for a charge no more than your
358a8e1175bSopenharmony_ci    cost of physically performing source distribution, a complete
359a8e1175bSopenharmony_ci    machine-readable copy of the corresponding source code, to be
360a8e1175bSopenharmony_ci    distributed under the terms of Sections 1 and 2 above on a medium
361a8e1175bSopenharmony_ci    customarily used for software interchange; or,
362a8e1175bSopenharmony_ci
363a8e1175bSopenharmony_ci    c) Accompany it with the information you received as to the offer
364a8e1175bSopenharmony_ci    to distribute corresponding source code.  (This alternative is
365a8e1175bSopenharmony_ci    allowed only for noncommercial distribution and only if you
366a8e1175bSopenharmony_ci    received the program in object code or executable form with such
367a8e1175bSopenharmony_ci    an offer, in accord with Subsection b above.)
368a8e1175bSopenharmony_ci
369a8e1175bSopenharmony_ciThe source code for a work means the preferred form of the work for
370a8e1175bSopenharmony_cimaking modifications to it.  For an executable work, complete source
371a8e1175bSopenharmony_cicode means all the source code for all modules it contains, plus any
372a8e1175bSopenharmony_ciassociated interface definition files, plus the scripts used to
373a8e1175bSopenharmony_cicontrol compilation and installation of the executable.  However, as a
374a8e1175bSopenharmony_cispecial exception, the source code distributed need not include
375a8e1175bSopenharmony_cianything that is normally distributed (in either source or binary
376a8e1175bSopenharmony_ciform) with the major components (compiler, kernel, and so on) of the
377a8e1175bSopenharmony_cioperating system on which the executable runs, unless that component
378a8e1175bSopenharmony_ciitself accompanies the executable.
379a8e1175bSopenharmony_ci
380a8e1175bSopenharmony_ciIf distribution of executable or object code is made by offering
381a8e1175bSopenharmony_ciaccess to copy from a designated place, then offering equivalent
382a8e1175bSopenharmony_ciaccess to copy the source code from the same place counts as
383a8e1175bSopenharmony_cidistribution of the source code, even though third parties are not
384a8e1175bSopenharmony_cicompelled to copy the source along with the object code.
385a8e1175bSopenharmony_ci
386a8e1175bSopenharmony_ci  4. You may not copy, modify, sublicense, or distribute the Program
387a8e1175bSopenharmony_ciexcept as expressly provided under this License.  Any attempt
388a8e1175bSopenharmony_ciotherwise to copy, modify, sublicense or distribute the Program is
389a8e1175bSopenharmony_civoid, and will automatically terminate your rights under this License.
390a8e1175bSopenharmony_ciHowever, parties who have received copies, or rights, from you under
391a8e1175bSopenharmony_cithis License will not have their licenses terminated so long as such
392a8e1175bSopenharmony_ciparties remain in full compliance.
393a8e1175bSopenharmony_ci
394a8e1175bSopenharmony_ci  5. You are not required to accept this License, since you have not
395a8e1175bSopenharmony_cisigned it.  However, nothing else grants you permission to modify or
396a8e1175bSopenharmony_cidistribute the Program or its derivative works.  These actions are
397a8e1175bSopenharmony_ciprohibited by law if you do not accept this License.  Therefore, by
398a8e1175bSopenharmony_cimodifying or distributing the Program (or any work based on the
399a8e1175bSopenharmony_ciProgram), you indicate your acceptance of this License to do so, and
400a8e1175bSopenharmony_ciall its terms and conditions for copying, distributing or modifying
401a8e1175bSopenharmony_cithe Program or works based on it.
402a8e1175bSopenharmony_ci
403a8e1175bSopenharmony_ci  6. Each time you redistribute the Program (or any work based on the
404a8e1175bSopenharmony_ciProgram), the recipient automatically receives a license from the
405a8e1175bSopenharmony_cioriginal licensor to copy, distribute or modify the Program subject to
406a8e1175bSopenharmony_cithese terms and conditions.  You may not impose any further
407a8e1175bSopenharmony_cirestrictions on the recipients' exercise of the rights granted herein.
408a8e1175bSopenharmony_ciYou are not responsible for enforcing compliance by third parties to
409a8e1175bSopenharmony_cithis License.
410a8e1175bSopenharmony_ci
411a8e1175bSopenharmony_ci  7. If, as a consequence of a court judgment or allegation of patent
412a8e1175bSopenharmony_ciinfringement or for any other reason (not limited to patent issues),
413a8e1175bSopenharmony_ciconditions are imposed on you (whether by court order, agreement or
414a8e1175bSopenharmony_ciotherwise) that contradict the conditions of this License, they do not
415a8e1175bSopenharmony_ciexcuse you from the conditions of this License.  If you cannot
416a8e1175bSopenharmony_cidistribute so as to satisfy simultaneously your obligations under this
417a8e1175bSopenharmony_ciLicense and any other pertinent obligations, then as a consequence you
418a8e1175bSopenharmony_cimay not distribute the Program at all.  For example, if a patent
419a8e1175bSopenharmony_cilicense would not permit royalty-free redistribution of the Program by
420a8e1175bSopenharmony_ciall those who receive copies directly or indirectly through you, then
421a8e1175bSopenharmony_cithe only way you could satisfy both it and this License would be to
422a8e1175bSopenharmony_cirefrain entirely from distribution of the Program.
423a8e1175bSopenharmony_ci
424a8e1175bSopenharmony_ciIf any portion of this section is held invalid or unenforceable under
425a8e1175bSopenharmony_ciany particular circumstance, the balance of the section is intended to
426a8e1175bSopenharmony_ciapply and the section as a whole is intended to apply in other
427a8e1175bSopenharmony_cicircumstances.
428a8e1175bSopenharmony_ci
429a8e1175bSopenharmony_ciIt is not the purpose of this section to induce you to infringe any
430a8e1175bSopenharmony_cipatents or other property right claims or to contest validity of any
431a8e1175bSopenharmony_cisuch claims; this section has the sole purpose of protecting the
432a8e1175bSopenharmony_ciintegrity of the free software distribution system, which is
433a8e1175bSopenharmony_ciimplemented by public license practices.  Many people have made
434a8e1175bSopenharmony_cigenerous contributions to the wide range of software distributed
435a8e1175bSopenharmony_cithrough that system in reliance on consistent application of that
436a8e1175bSopenharmony_cisystem; it is up to the author/donor to decide if he or she is willing
437a8e1175bSopenharmony_cito distribute software through any other system and a licensee cannot
438a8e1175bSopenharmony_ciimpose that choice.
439a8e1175bSopenharmony_ci
440a8e1175bSopenharmony_ciThis section is intended to make thoroughly clear what is believed to
441a8e1175bSopenharmony_cibe a consequence of the rest of this License.
442a8e1175bSopenharmony_ci
443a8e1175bSopenharmony_ci  8. If the distribution and/or use of the Program is restricted in
444a8e1175bSopenharmony_cicertain countries either by patents or by copyrighted interfaces, the
445a8e1175bSopenharmony_cioriginal copyright holder who places the Program under this License
446a8e1175bSopenharmony_cimay add an explicit geographical distribution limitation excluding
447a8e1175bSopenharmony_cithose countries, so that distribution is permitted only in or among
448a8e1175bSopenharmony_cicountries not thus excluded.  In such case, this License incorporates
449a8e1175bSopenharmony_cithe limitation as if written in the body of this License.
450a8e1175bSopenharmony_ci
451a8e1175bSopenharmony_ci  9. The Free Software Foundation may publish revised and/or new versions
452a8e1175bSopenharmony_ciof the General Public License from time to time.  Such new versions will
453a8e1175bSopenharmony_cibe similar in spirit to the present version, but may differ in detail to
454a8e1175bSopenharmony_ciaddress new problems or concerns.
455a8e1175bSopenharmony_ci
456a8e1175bSopenharmony_ciEach version is given a distinguishing version number.  If the Program
457a8e1175bSopenharmony_cispecifies a version number of this License which applies to it and "any
458a8e1175bSopenharmony_cilater version", you have the option of following the terms and conditions
459a8e1175bSopenharmony_cieither of that version or of any later version published by the Free
460a8e1175bSopenharmony_ciSoftware Foundation.  If the Program does not specify a version number of
461a8e1175bSopenharmony_cithis License, you may choose any version ever published by the Free Software
462a8e1175bSopenharmony_ciFoundation.
463a8e1175bSopenharmony_ci
464a8e1175bSopenharmony_ci  10. If you wish to incorporate parts of the Program into other free
465a8e1175bSopenharmony_ciprograms whose distribution conditions are different, write to the author
466a8e1175bSopenharmony_cito ask for permission.  For software which is copyrighted by the Free
467a8e1175bSopenharmony_ciSoftware Foundation, write to the Free Software Foundation; we sometimes
468a8e1175bSopenharmony_cimake exceptions for this.  Our decision will be guided by the two goals
469a8e1175bSopenharmony_ciof preserving the free status of all derivatives of our free software and
470a8e1175bSopenharmony_ciof promoting the sharing and reuse of software generally.
471a8e1175bSopenharmony_ci
472a8e1175bSopenharmony_ci                            NO WARRANTY
473a8e1175bSopenharmony_ci
474a8e1175bSopenharmony_ci  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
475a8e1175bSopenharmony_ciFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
476a8e1175bSopenharmony_ciOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
477a8e1175bSopenharmony_ciPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
478a8e1175bSopenharmony_ciOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
479a8e1175bSopenharmony_ciMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
480a8e1175bSopenharmony_ciTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
481a8e1175bSopenharmony_ciPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
482a8e1175bSopenharmony_ciREPAIR OR CORRECTION.
483a8e1175bSopenharmony_ci
484a8e1175bSopenharmony_ci  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
485a8e1175bSopenharmony_ciWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
486a8e1175bSopenharmony_ciREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
487a8e1175bSopenharmony_ciINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
488a8e1175bSopenharmony_ciOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
489a8e1175bSopenharmony_ciTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
490a8e1175bSopenharmony_ciYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
491a8e1175bSopenharmony_ciPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
492a8e1175bSopenharmony_ciPOSSIBILITY OF SUCH DAMAGES.
493a8e1175bSopenharmony_ci
494a8e1175bSopenharmony_ci                     END OF TERMS AND CONDITIONS
495a8e1175bSopenharmony_ci
496a8e1175bSopenharmony_ci            How to Apply These Terms to Your New Programs
497a8e1175bSopenharmony_ci
498a8e1175bSopenharmony_ci  If you develop a new program, and you want it to be of the greatest
499a8e1175bSopenharmony_cipossible use to the public, the best way to achieve this is to make it
500a8e1175bSopenharmony_cifree software which everyone can redistribute and change under these terms.
501a8e1175bSopenharmony_ci
502a8e1175bSopenharmony_ci  To do so, attach the following notices to the program.  It is safest
503a8e1175bSopenharmony_cito attach them to the start of each source file to most effectively
504a8e1175bSopenharmony_ciconvey the exclusion of warranty; and each file should have at least
505a8e1175bSopenharmony_cithe "copyright" line and a pointer to where the full notice is found.
506a8e1175bSopenharmony_ci
507a8e1175bSopenharmony_ci    <one line to give the program's name and a brief idea of what it does.>
508a8e1175bSopenharmony_ci    Copyright (C) <year>  <name of author>
509a8e1175bSopenharmony_ci
510a8e1175bSopenharmony_ci    This program is free software; you can redistribute it and/or modify
511a8e1175bSopenharmony_ci    it under the terms of the GNU General Public License as published by
512a8e1175bSopenharmony_ci    the Free Software Foundation; either version 2 of the License, or
513a8e1175bSopenharmony_ci    (at your option) any later version.
514a8e1175bSopenharmony_ci
515a8e1175bSopenharmony_ci    This program is distributed in the hope that it will be useful,
516a8e1175bSopenharmony_ci    but WITHOUT ANY WARRANTY; without even the implied warranty of
517a8e1175bSopenharmony_ci    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
518a8e1175bSopenharmony_ci    GNU General Public License for more details.
519a8e1175bSopenharmony_ci
520a8e1175bSopenharmony_ci    You should have received a copy of the GNU General Public License along
521a8e1175bSopenharmony_ci    with this program; if not, write to the Free Software Foundation, Inc.,
522a8e1175bSopenharmony_ci    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
523a8e1175bSopenharmony_ci
524a8e1175bSopenharmony_ciAlso add information on how to contact you by electronic and paper mail.
525a8e1175bSopenharmony_ci
526a8e1175bSopenharmony_ciIf the program is interactive, make it output a short notice like this
527a8e1175bSopenharmony_ciwhen it starts in an interactive mode:
528a8e1175bSopenharmony_ci
529a8e1175bSopenharmony_ci    Gnomovision version 69, Copyright (C) year name of author
530a8e1175bSopenharmony_ci    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
531a8e1175bSopenharmony_ci    This is free software, and you are welcome to redistribute it
532a8e1175bSopenharmony_ci    under certain conditions; type `show c' for details.
533a8e1175bSopenharmony_ci
534a8e1175bSopenharmony_ciThe hypothetical commands `show w' and `show c' should show the appropriate
535a8e1175bSopenharmony_ciparts of the General Public License.  Of course, the commands you use may
536a8e1175bSopenharmony_cibe called something other than `show w' and `show c'; they could even be
537a8e1175bSopenharmony_cimouse-clicks or menu items--whatever suits your program.
538a8e1175bSopenharmony_ci
539a8e1175bSopenharmony_ciYou should also get your employer (if you work as a programmer) or your
540a8e1175bSopenharmony_cischool, if any, to sign a "copyright disclaimer" for the program, if
541a8e1175bSopenharmony_cinecessary.  Here is a sample; alter the names:
542a8e1175bSopenharmony_ci
543a8e1175bSopenharmony_ci  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
544a8e1175bSopenharmony_ci  `Gnomovision' (which makes passes at compilers) written by James Hacker.
545a8e1175bSopenharmony_ci
546a8e1175bSopenharmony_ci  <signature of Ty Coon>, 1 April 1989
547a8e1175bSopenharmony_ci  Ty Coon, President of Vice
548a8e1175bSopenharmony_ci
549a8e1175bSopenharmony_ciThis General Public License does not permit incorporating your program into
550a8e1175bSopenharmony_ciproprietary programs.  If your program is a subroutine library, you may
551a8e1175bSopenharmony_ciconsider it more useful to permit linking proprietary applications with the
552a8e1175bSopenharmony_cilibrary.  If this is what you want to do, use the GNU Lesser General
553a8e1175bSopenharmony_ciPublic License instead of this License.
554