xref: /optee_os/lib/libmbedtls/mbedtls/LICENSE (revision 11fa71b9ddb429088f325cfda430183003ccd1db)
1*11fa71b9SJerome Forissier
2*11fa71b9SJerome Forissier                                 Apache License
3*11fa71b9SJerome Forissier                           Version 2.0, January 2004
4*11fa71b9SJerome Forissier                        http://www.apache.org/licenses/
5*11fa71b9SJerome Forissier
6*11fa71b9SJerome Forissier   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7*11fa71b9SJerome Forissier
8*11fa71b9SJerome Forissier   1. Definitions.
9*11fa71b9SJerome Forissier
10*11fa71b9SJerome Forissier      "License" shall mean the terms and conditions for use, reproduction,
11*11fa71b9SJerome Forissier      and distribution as defined by Sections 1 through 9 of this document.
12*11fa71b9SJerome Forissier
13*11fa71b9SJerome Forissier      "Licensor" shall mean the copyright owner or entity authorized by
14*11fa71b9SJerome Forissier      the copyright owner that is granting the License.
15*11fa71b9SJerome Forissier
16*11fa71b9SJerome Forissier      "Legal Entity" shall mean the union of the acting entity and all
17*11fa71b9SJerome Forissier      other entities that control, are controlled by, or are under common
18*11fa71b9SJerome Forissier      control with that entity. For the purposes of this definition,
19*11fa71b9SJerome Forissier      "control" means (i) the power, direct or indirect, to cause the
20*11fa71b9SJerome Forissier      direction or management of such entity, whether by contract or
21*11fa71b9SJerome Forissier      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22*11fa71b9SJerome Forissier      outstanding shares, or (iii) beneficial ownership of such entity.
23*11fa71b9SJerome Forissier
24*11fa71b9SJerome Forissier      "You" (or "Your") shall mean an individual or Legal Entity
25*11fa71b9SJerome Forissier      exercising permissions granted by this License.
26*11fa71b9SJerome Forissier
27*11fa71b9SJerome Forissier      "Source" form shall mean the preferred form for making modifications,
28*11fa71b9SJerome Forissier      including but not limited to software source code, documentation
29*11fa71b9SJerome Forissier      source, and configuration files.
30*11fa71b9SJerome Forissier
31*11fa71b9SJerome Forissier      "Object" form shall mean any form resulting from mechanical
32*11fa71b9SJerome Forissier      transformation or translation of a Source form, including but
33*11fa71b9SJerome Forissier      not limited to compiled object code, generated documentation,
34*11fa71b9SJerome Forissier      and conversions to other media types.
35*11fa71b9SJerome Forissier
36*11fa71b9SJerome Forissier      "Work" shall mean the work of authorship, whether in Source or
37*11fa71b9SJerome Forissier      Object form, made available under the License, as indicated by a
38*11fa71b9SJerome Forissier      copyright notice that is included in or attached to the work
39*11fa71b9SJerome Forissier      (an example is provided in the Appendix below).
40*11fa71b9SJerome Forissier
41*11fa71b9SJerome Forissier      "Derivative Works" shall mean any work, whether in Source or Object
42*11fa71b9SJerome Forissier      form, that is based on (or derived from) the Work and for which the
43*11fa71b9SJerome Forissier      editorial revisions, annotations, elaborations, or other modifications
44*11fa71b9SJerome Forissier      represent, as a whole, an original work of authorship. For the purposes
45*11fa71b9SJerome Forissier      of this License, Derivative Works shall not include works that remain
46*11fa71b9SJerome Forissier      separable from, or merely link (or bind by name) to the interfaces of,
47*11fa71b9SJerome Forissier      the Work and Derivative Works thereof.
48*11fa71b9SJerome Forissier
49*11fa71b9SJerome Forissier      "Contribution" shall mean any work of authorship, including
50*11fa71b9SJerome Forissier      the original version of the Work and any modifications or additions
51*11fa71b9SJerome Forissier      to that Work or Derivative Works thereof, that is intentionally
52*11fa71b9SJerome Forissier      submitted to Licensor for inclusion in the Work by the copyright owner
53*11fa71b9SJerome Forissier      or by an individual or Legal Entity authorized to submit on behalf of
54*11fa71b9SJerome Forissier      the copyright owner. For the purposes of this definition, "submitted"
55*11fa71b9SJerome Forissier      means any form of electronic, verbal, or written communication sent
56*11fa71b9SJerome Forissier      to the Licensor or its representatives, including but not limited to
57*11fa71b9SJerome Forissier      communication on electronic mailing lists, source code control systems,
58*11fa71b9SJerome Forissier      and issue tracking systems that are managed by, or on behalf of, the
59*11fa71b9SJerome Forissier      Licensor for the purpose of discussing and improving the Work, but
60*11fa71b9SJerome Forissier      excluding communication that is conspicuously marked or otherwise
61*11fa71b9SJerome Forissier      designated in writing by the copyright owner as "Not a Contribution."
62*11fa71b9SJerome Forissier
63*11fa71b9SJerome Forissier      "Contributor" shall mean Licensor and any individual or Legal Entity
64*11fa71b9SJerome Forissier      on behalf of whom a Contribution has been received by Licensor and
65*11fa71b9SJerome Forissier      subsequently incorporated within the Work.
66*11fa71b9SJerome Forissier
67*11fa71b9SJerome Forissier   2. Grant of Copyright License. Subject to the terms and conditions of
68*11fa71b9SJerome Forissier      this License, each Contributor hereby grants to You a perpetual,
69*11fa71b9SJerome Forissier      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70*11fa71b9SJerome Forissier      copyright license to reproduce, prepare Derivative Works of,
71*11fa71b9SJerome Forissier      publicly display, publicly perform, sublicense, and distribute the
72*11fa71b9SJerome Forissier      Work and such Derivative Works in Source or Object form.
73*11fa71b9SJerome Forissier
74*11fa71b9SJerome Forissier   3. Grant of Patent License. Subject to the terms and conditions of
75*11fa71b9SJerome Forissier      this License, each Contributor hereby grants to You a perpetual,
76*11fa71b9SJerome Forissier      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77*11fa71b9SJerome Forissier      (except as stated in this section) patent license to make, have made,
78*11fa71b9SJerome Forissier      use, offer to sell, sell, import, and otherwise transfer the Work,
79*11fa71b9SJerome Forissier      where such license applies only to those patent claims licensable
80*11fa71b9SJerome Forissier      by such Contributor that are necessarily infringed by their
81*11fa71b9SJerome Forissier      Contribution(s) alone or by combination of their Contribution(s)
82*11fa71b9SJerome Forissier      with the Work to which such Contribution(s) was submitted. If You
83*11fa71b9SJerome Forissier      institute patent litigation against any entity (including a
84*11fa71b9SJerome Forissier      cross-claim or counterclaim in a lawsuit) alleging that the Work
85*11fa71b9SJerome Forissier      or a Contribution incorporated within the Work constitutes direct
86*11fa71b9SJerome Forissier      or contributory patent infringement, then any patent licenses
87*11fa71b9SJerome Forissier      granted to You under this License for that Work shall terminate
88*11fa71b9SJerome Forissier      as of the date such litigation is filed.
89*11fa71b9SJerome Forissier
90*11fa71b9SJerome Forissier   4. Redistribution. You may reproduce and distribute copies of the
91*11fa71b9SJerome Forissier      Work or Derivative Works thereof in any medium, with or without
92*11fa71b9SJerome Forissier      modifications, and in Source or Object form, provided that You
93*11fa71b9SJerome Forissier      meet the following conditions:
94*11fa71b9SJerome Forissier
95*11fa71b9SJerome Forissier      (a) You must give any other recipients of the Work or
96*11fa71b9SJerome Forissier          Derivative Works a copy of this License; and
97*11fa71b9SJerome Forissier
98*11fa71b9SJerome Forissier      (b) You must cause any modified files to carry prominent notices
99*11fa71b9SJerome Forissier          stating that You changed the files; and
100*11fa71b9SJerome Forissier
101*11fa71b9SJerome Forissier      (c) You must retain, in the Source form of any Derivative Works
102*11fa71b9SJerome Forissier          that You distribute, all copyright, patent, trademark, and
103*11fa71b9SJerome Forissier          attribution notices from the Source form of the Work,
104*11fa71b9SJerome Forissier          excluding those notices that do not pertain to any part of
105*11fa71b9SJerome Forissier          the Derivative Works; and
106*11fa71b9SJerome Forissier
107*11fa71b9SJerome Forissier      (d) If the Work includes a "NOTICE" text file as part of its
108*11fa71b9SJerome Forissier          distribution, then any Derivative Works that You distribute must
109*11fa71b9SJerome Forissier          include a readable copy of the attribution notices contained
110*11fa71b9SJerome Forissier          within such NOTICE file, excluding those notices that do not
111*11fa71b9SJerome Forissier          pertain to any part of the Derivative Works, in at least one
112*11fa71b9SJerome Forissier          of the following places: within a NOTICE text file distributed
113*11fa71b9SJerome Forissier          as part of the Derivative Works; within the Source form or
114*11fa71b9SJerome Forissier          documentation, if provided along with the Derivative Works; or,
115*11fa71b9SJerome Forissier          within a display generated by the Derivative Works, if and
116*11fa71b9SJerome Forissier          wherever such third-party notices normally appear. The contents
117*11fa71b9SJerome Forissier          of the NOTICE file are for informational purposes only and
118*11fa71b9SJerome Forissier          do not modify the License. You may add Your own attribution
119*11fa71b9SJerome Forissier          notices within Derivative Works that You distribute, alongside
120*11fa71b9SJerome Forissier          or as an addendum to the NOTICE text from the Work, provided
121*11fa71b9SJerome Forissier          that such additional attribution notices cannot be construed
122*11fa71b9SJerome Forissier          as modifying the License.
123*11fa71b9SJerome Forissier
124*11fa71b9SJerome Forissier      You may add Your own copyright statement to Your modifications and
125*11fa71b9SJerome Forissier      may provide additional or different license terms and conditions
126*11fa71b9SJerome Forissier      for use, reproduction, or distribution of Your modifications, or
127*11fa71b9SJerome Forissier      for any such Derivative Works as a whole, provided Your use,
128*11fa71b9SJerome Forissier      reproduction, and distribution of the Work otherwise complies with
129*11fa71b9SJerome Forissier      the conditions stated in this License.
130*11fa71b9SJerome Forissier
131*11fa71b9SJerome Forissier   5. Submission of Contributions. Unless You explicitly state otherwise,
132*11fa71b9SJerome Forissier      any Contribution intentionally submitted for inclusion in the Work
133*11fa71b9SJerome Forissier      by You to the Licensor shall be under the terms and conditions of
134*11fa71b9SJerome Forissier      this License, without any additional terms or conditions.
135*11fa71b9SJerome Forissier      Notwithstanding the above, nothing herein shall supersede or modify
136*11fa71b9SJerome Forissier      the terms of any separate license agreement you may have executed
137*11fa71b9SJerome Forissier      with Licensor regarding such Contributions.
138*11fa71b9SJerome Forissier
139*11fa71b9SJerome Forissier   6. Trademarks. This License does not grant permission to use the trade
140*11fa71b9SJerome Forissier      names, trademarks, service marks, or product names of the Licensor,
141*11fa71b9SJerome Forissier      except as required for reasonable and customary use in describing the
142*11fa71b9SJerome Forissier      origin of the Work and reproducing the content of the NOTICE file.
143*11fa71b9SJerome Forissier
144*11fa71b9SJerome Forissier   7. Disclaimer of Warranty. Unless required by applicable law or
145*11fa71b9SJerome Forissier      agreed to in writing, Licensor provides the Work (and each
146*11fa71b9SJerome Forissier      Contributor provides its Contributions) on an "AS IS" BASIS,
147*11fa71b9SJerome Forissier      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148*11fa71b9SJerome Forissier      implied, including, without limitation, any warranties or conditions
149*11fa71b9SJerome Forissier      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150*11fa71b9SJerome Forissier      PARTICULAR PURPOSE. You are solely responsible for determining the
151*11fa71b9SJerome Forissier      appropriateness of using or redistributing the Work and assume any
152*11fa71b9SJerome Forissier      risks associated with Your exercise of permissions under this License.
153*11fa71b9SJerome Forissier
154*11fa71b9SJerome Forissier   8. Limitation of Liability. In no event and under no legal theory,
155*11fa71b9SJerome Forissier      whether in tort (including negligence), contract, or otherwise,
156*11fa71b9SJerome Forissier      unless required by applicable law (such as deliberate and grossly
157*11fa71b9SJerome Forissier      negligent acts) or agreed to in writing, shall any Contributor be
158*11fa71b9SJerome Forissier      liable to You for damages, including any direct, indirect, special,
159*11fa71b9SJerome Forissier      incidental, or consequential damages of any character arising as a
160*11fa71b9SJerome Forissier      result of this License or out of the use or inability to use the
161*11fa71b9SJerome Forissier      Work (including but not limited to damages for loss of goodwill,
162*11fa71b9SJerome Forissier      work stoppage, computer failure or malfunction, or any and all
163*11fa71b9SJerome Forissier      other commercial damages or losses), even if such Contributor
164*11fa71b9SJerome Forissier      has been advised of the possibility of such damages.
165*11fa71b9SJerome Forissier
166*11fa71b9SJerome Forissier   9. Accepting Warranty or Additional Liability. While redistributing
167*11fa71b9SJerome Forissier      the Work or Derivative Works thereof, You may choose to offer,
168*11fa71b9SJerome Forissier      and charge a fee for, acceptance of support, warranty, indemnity,
169*11fa71b9SJerome Forissier      or other liability obligations and/or rights consistent with this
170*11fa71b9SJerome Forissier      License. However, in accepting such obligations, You may act only
171*11fa71b9SJerome Forissier      on Your own behalf and on Your sole responsibility, not on behalf
172*11fa71b9SJerome Forissier      of any other Contributor, and only if You agree to indemnify,
173*11fa71b9SJerome Forissier      defend, and hold each Contributor harmless for any liability
174*11fa71b9SJerome Forissier      incurred by, or claims asserted against, such Contributor by reason
175*11fa71b9SJerome Forissier      of your accepting any such warranty or additional liability.
176*11fa71b9SJerome Forissier
177*11fa71b9SJerome Forissier   END OF TERMS AND CONDITIONS
178*11fa71b9SJerome Forissier
179*11fa71b9SJerome Forissier   APPENDIX: How to apply the Apache License to your work.
180*11fa71b9SJerome Forissier
181*11fa71b9SJerome Forissier      To apply the Apache License to your work, attach the following
182*11fa71b9SJerome Forissier      boilerplate notice, with the fields enclosed by brackets "[]"
183*11fa71b9SJerome Forissier      replaced with your own identifying information. (Don't include
184*11fa71b9SJerome Forissier      the brackets!)  The text should be enclosed in the appropriate
185*11fa71b9SJerome Forissier      comment syntax for the file format. We also recommend that a
186*11fa71b9SJerome Forissier      file or class name and description of purpose be included on the
187*11fa71b9SJerome Forissier      same "printed page" as the copyright notice for easier
188*11fa71b9SJerome Forissier      identification within third-party archives.
189*11fa71b9SJerome Forissier
190*11fa71b9SJerome Forissier   Copyright [yyyy] [name of copyright owner]
191*11fa71b9SJerome Forissier
192*11fa71b9SJerome Forissier   Licensed under the Apache License, Version 2.0 (the "License");
193*11fa71b9SJerome Forissier   you may not use this file except in compliance with the License.
194*11fa71b9SJerome Forissier   You may obtain a copy of the License at
195*11fa71b9SJerome Forissier
196*11fa71b9SJerome Forissier       http://www.apache.org/licenses/LICENSE-2.0
197*11fa71b9SJerome Forissier
198*11fa71b9SJerome Forissier   Unless required by applicable law or agreed to in writing, software
199*11fa71b9SJerome Forissier   distributed under the License is distributed on an "AS IS" BASIS,
200*11fa71b9SJerome Forissier   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201*11fa71b9SJerome Forissier   See the License for the specific language governing permissions and
202*11fa71b9SJerome Forissier   limitations under the License.
203