1NSS is available under the Mozilla Public License, version 2, a copy of which
2is below.
3
4Note on GPL Compatibility
5-------------------------
6
7The MPL 2, section 3.3, permits you to combine NSS with code under the GNU
8General Public License (GPL) version 2, or any later version of that
9license, to make a Larger Work, and distribute the result under the GPL.
10The only condition is that you must also make NSS, and any changes you
11have made to it, available to recipients under the terms of the MPL 2 also.
12
13Anyone who receives the combined code from you does not have to continue
14to dual licence in this way, and may, if they wish, distribute under the
15terms of either of the two licences - either the MPL alone or the GPL
16alone. However, we discourage people from distributing copies of NSS under
17the GPL alone, because it means that any improvements they make cannot be
18reincorporated into the main version of NSS. There is never a need to do
19this for license compatibility reasons.
20
21Note on LGPL Compatibility
22--------------------------
23
24The above also applies to combining MPLed code in a single library with
25code under the GNU Lesser General Public License (LGPL) version 2.1, or
26any later version of that license. If the LGPLed code and the MPLed code
27are not in the same library, then the copyleft coverage of the two
28licences does not overlap, so no issues arise.
29
30
31Mozilla Public License Version 2.0
32==================================
33
341. Definitions
35--------------
36
371.1. "Contributor"
38    means each individual or legal entity that creates, contributes to
39    the creation of, or owns Covered Software.
40
411.2. "Contributor Version"
42    means the combination of the Contributions of others (if any) used
43    by a Contributor and that particular Contributor's Contribution.
44
451.3. "Contribution"
46    means Covered Software of a particular Contributor.
47
481.4. "Covered Software"
49    means Source Code Form to which the initial Contributor has attached
50    the notice in Exhibit A, the Executable Form of such Source Code
51    Form, and Modifications of such Source Code Form, in each case
52    including portions thereof.
53
541.5. "Incompatible With Secondary Licenses"
55    means
56
57    (a) that the initial Contributor has attached the notice described
58        in Exhibit B to the Covered Software; or
59
60    (b) that the Covered Software was made available under the terms of
61        version 1.1 or earlier of the License, but not also under the
62        terms of a Secondary License.
63
641.6. "Executable Form"
65    means any form of the work other than Source Code Form.
66
671.7. "Larger Work"
68    means a work that combines Covered Software with other material, in
69    a separate file or files, that is not Covered Software.
70
711.8. "License"
72    means this document.
73
741.9. "Licensable"
75    means having the right to grant, to the maximum extent possible,
76    whether at the time of the initial grant or subsequently, any and
77    all of the rights conveyed by this License.
78
791.10. "Modifications"
80    means any of the following:
81
82    (a) any file in Source Code Form that results from an addition to,
83        deletion from, or modification of the contents of Covered
84        Software; or
85
86    (b) any new file in Source Code Form that contains any Covered
87        Software.
88
891.11. "Patent Claims" of a Contributor
90    means any patent claim(s), including without limitation, method,
91    process, and apparatus claims, in any patent Licensable by such
92    Contributor that would be infringed, but for the grant of the
93    License, by the making, using, selling, offering for sale, having
94    made, import, or transfer of either its Contributions or its
95    Contributor Version.
96
971.12. "Secondary License"
98    means either the GNU General Public License, Version 2.0, the GNU
99    Lesser General Public License, Version 2.1, the GNU Affero General
100    Public License, Version 3.0, or any later versions of those
101    licenses.
102
1031.13. "Source Code Form"
104    means the form of the work preferred for making modifications.
105
1061.14. "You" (or "Your")
107    means an individual or a legal entity exercising rights under this
108    License. For legal entities, "You" includes any entity that
109    controls, is controlled by, or is under common control with You. For
110    purposes of this definition, "control" means (a) the power, direct
111    or indirect, to cause the direction or management of such entity,
112    whether by contract or otherwise, or (b) ownership of more than
113    fifty percent (50%) of the outstanding shares or beneficial
114    ownership of such entity.
115
1162. License Grants and Conditions
117--------------------------------
118
1192.1. Grants
120
121Each Contributor hereby grants You a world-wide, royalty-free,
122non-exclusive license:
123
124(a) under intellectual property rights (other than patent or trademark)
125    Licensable by such Contributor to use, reproduce, make available,
126    modify, display, perform, distribute, and otherwise exploit its
127    Contributions, either on an unmodified basis, with Modifications, or
128    as part of a Larger Work; and
129
130(b) under Patent Claims of such Contributor to make, use, sell, offer
131    for sale, have made, import, and otherwise transfer either its
132    Contributions or its Contributor Version.
133
1342.2. Effective Date
135
136The licenses granted in Section 2.1 with respect to any Contribution
137become effective for each Contribution on the date the Contributor first
138distributes such Contribution.
139
1402.3. Limitations on Grant Scope
141
142The licenses granted in this Section 2 are the only rights granted under
143this License. No additional rights or licenses will be implied from the
144distribution or licensing of Covered Software under this License.
145Notwithstanding Section 2.1(b) above, no patent license is granted by a
146Contributor:
147
148(a) for any code that a Contributor has removed from Covered Software;
149    or
150
151(b) for infringements caused by: (i) Your and any other third party's
152    modifications of Covered Software, or (ii) the combination of its
153    Contributions with other software (except as part of its Contributor
154    Version); or
155
156(c) under Patent Claims infringed by Covered Software in the absence of
157    its Contributions.
158
159This License does not grant any rights in the trademarks, service marks,
160or logos of any Contributor (except as may be necessary to comply with
161the notice requirements in Section 3.4).
162
1632.4. Subsequent Licenses
164
165No Contributor makes additional grants as a result of Your choice to
166distribute the Covered Software under a subsequent version of this
167License (see Section 10.2) or under the terms of a Secondary License (if
168permitted under the terms of Section 3.3).
169
1702.5. Representation
171
172Each Contributor represents that the Contributor believes its
173Contributions are its original creation(s) or it has sufficient rights
174to grant the rights to its Contributions conveyed by this License.
175
1762.6. Fair Use
177
178This License is not intended to limit any rights You have under
179applicable copyright doctrines of fair use, fair dealing, or other
180equivalents.
181
1822.7. Conditions
183
184Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
185in Section 2.1.
186
1873. Responsibilities
188-------------------
189
1903.1. Distribution of Source Form
191
192All distribution of Covered Software in Source Code Form, including any
193Modifications that You create or to which You contribute, must be under
194the terms of this License. You must inform recipients that the Source
195Code Form of the Covered Software is governed by the terms of this
196License, and how they can obtain a copy of this License. You may not
197attempt to alter or restrict the recipients' rights in the Source Code
198Form.
199
2003.2. Distribution of Executable Form
201
202If You distribute Covered Software in Executable Form then:
203
204(a) such Covered Software must also be made available in Source Code
205    Form, as described in Section 3.1, and You must inform recipients of
206    the Executable Form how they can obtain a copy of such Source Code
207    Form by reasonable means in a timely manner, at a charge no more
208    than the cost of distribution to the recipient; and
209
210(b) You may distribute such Executable Form under the terms of this
211    License, or sublicense it under different terms, provided that the
212    license for the Executable Form does not attempt to limit or alter
213    the recipients' rights in the Source Code Form under this License.
214
2153.3. Distribution of a Larger Work
216
217You may create and distribute a Larger Work under terms of Your choice,
218provided that You also comply with the requirements of this License for
219the Covered Software. If the Larger Work is a combination of Covered
220Software with a work governed by one or more Secondary Licenses, and the
221Covered Software is not Incompatible With Secondary Licenses, this
222License permits You to additionally distribute such Covered Software
223under the terms of such Secondary License(s), so that the recipient of
224the Larger Work may, at their option, further distribute the Covered
225Software under the terms of either this License or such Secondary
226License(s).
227
2283.4. Notices
229
230You may not remove or alter the substance of any license notices
231(including copyright notices, patent notices, disclaimers of warranty,
232or limitations of liability) contained within the Source Code Form of
233the Covered Software, except that You may alter any license notices to
234the extent required to remedy known factual inaccuracies.
235
2363.5. Application of Additional Terms
237
238You may choose to offer, and to charge a fee for, warranty, support,
239indemnity or liability obligations to one or more recipients of Covered
240Software. However, You may do so only on Your own behalf, and not on
241behalf of any Contributor. You must make it absolutely clear that any
242such warranty, support, indemnity, or liability obligation is offered by
243You alone, and You hereby agree to indemnify every Contributor for any
244liability incurred by such Contributor as a result of warranty, support,
245indemnity or liability terms You offer. You may include additional
246disclaimers of warranty and limitations of liability specific to any
247jurisdiction.
248
2494. Inability to Comply Due to Statute or Regulation
250---------------------------------------------------
251
252If it is impossible for You to comply with any of the terms of this
253License with respect to some or all of the Covered Software due to
254statute, judicial order, or regulation then You must: (a) comply with
255the terms of this License to the maximum extent possible; and (b)
256describe the limitations and the code they affect. Such description must
257be placed in a text file included with all distributions of the Covered
258Software under this License. Except to the extent prohibited by statute
259or regulation, such description must be sufficiently detailed for a
260recipient of ordinary skill to be able to understand it.
261
2625. Termination
263--------------
264
2655.1. The rights granted under this License will terminate automatically
266if You fail to comply with any of its terms. However, if You become
267compliant, then the rights granted under this License from a particular
268Contributor are reinstated (a) provisionally, unless and until such
269Contributor explicitly and finally terminates Your grants, and (b) on an
270ongoing basis, if such Contributor fails to notify You of the
271non-compliance by some reasonable means prior to 60 days after You have
272come back into compliance. Moreover, Your grants from a particular
273Contributor are reinstated on an ongoing basis if such Contributor
274notifies You of the non-compliance by some reasonable means, this is the
275first time You have received notice of non-compliance with this License
276from such Contributor, and You become compliant prior to 30 days after
277Your receipt of the notice.
278
2795.2. If You initiate litigation against any entity by asserting a patent
280infringement claim (excluding declaratory judgment actions,
281counter-claims, and cross-claims) alleging that a Contributor Version
282directly or indirectly infringes any patent, then the rights granted to
283You by any and all Contributors for the Covered Software under Section
2842.1 of this License shall terminate.
285
2865.3. In the event of termination under Sections 5.1 or 5.2 above, all
287end user license agreements (excluding distributors and resellers) which
288have been validly granted by You or Your distributors under this License
289prior to termination shall survive termination.
290
291************************************************************************
292*                                                                      *
293*  6. Disclaimer of Warranty                                           *
294*  -------------------------                                           *
295*                                                                      *
296*  Covered Software is provided under this License on an "as is"       *
297*  basis, without warranty of any kind, either expressed, implied, or  *
298*  statutory, including, without limitation, warranties that the       *
299*  Covered Software is free of defects, merchantable, fit for a        *
300*  particular purpose or non-infringing. The entire risk as to the     *
301*  quality and performance of the Covered Software is with You.        *
302*  Should any Covered Software prove defective in any respect, You     *
303*  (not any Contributor) assume the cost of any necessary servicing,   *
304*  repair, or correction. This disclaimer of warranty constitutes an   *
305*  essential part of this License. No use of any Covered Software is   *
306*  authorized under this License except under this disclaimer.         *
307*                                                                      *
308************************************************************************
309
310************************************************************************
311*                                                                      *
312*  7. Limitation of Liability                                          *
313*  --------------------------                                          *
314*                                                                      *
315*  Under no circumstances and under no legal theory, whether tort      *
316*  (including negligence), contract, or otherwise, shall any           *
317*  Contributor, or anyone who distributes Covered Software as          *
318*  permitted above, be liable to You for any direct, indirect,         *
319*  special, incidental, or consequential damages of any character      *
320*  including, without limitation, damages for lost profits, loss of    *
321*  goodwill, work stoppage, computer failure or malfunction, or any    *
322*  and all other commercial damages or losses, even if such party      *
323*  shall have been informed of the possibility of such damages. This   *
324*  limitation of liability shall not apply to liability for death or   *
325*  personal injury resulting from such party's negligence to the       *
326*  extent applicable law prohibits such limitation. Some               *
327*  jurisdictions do not allow the exclusion or limitation of           *
328*  incidental or consequential damages, so this exclusion and          *
329*  limitation may not apply to You.                                    *
330*                                                                      *
331************************************************************************
332
3338. Litigation
334-------------
335
336Any litigation relating to this License may be brought only in the
337courts of a jurisdiction where the defendant maintains its principal
338place of business and such litigation shall be governed by laws of that
339jurisdiction, without reference to its conflict-of-law provisions.
340Nothing in this Section shall prevent a party's ability to bring
341cross-claims or counter-claims.
342
3439. Miscellaneous
344----------------
345
346This License represents the complete agreement concerning the subject
347matter hereof. If any provision of this License is held to be
348unenforceable, such provision shall be reformed only to the extent
349necessary to make it enforceable. Any law or regulation which provides
350that the language of a contract shall be construed against the drafter
351shall not be used to construe this License against a Contributor.
352
35310. Versions of the License
354---------------------------
355
35610.1. New Versions
357
358Mozilla Foundation is the license steward. Except as provided in Section
35910.3, no one other than the license steward has the right to modify or
360publish new versions of this License. Each version will be given a
361distinguishing version number.
362
36310.2. Effect of New Versions
364
365You may distribute the Covered Software under the terms of the version
366of the License under which You originally received the Covered Software,
367or under the terms of any subsequent version published by the license
368steward.
369
37010.3. Modified Versions
371
372If you create software not governed by this License, and you want to
373create a new license for such software, you may create and use a
374modified version of this License if you rename the license and remove
375any references to the name of the license steward (except to note that
376such modified license differs from this License).
377
37810.4. Distributing Source Code Form that is Incompatible With Secondary
379Licenses
380
381If You choose to distribute Source Code Form that is Incompatible With
382Secondary Licenses under the terms of this version of the License, the
383notice described in Exhibit B of this License must be attached.
384
385Exhibit A - Source Code Form License Notice
386-------------------------------------------
387
388  This Source Code Form is subject to the terms of the Mozilla Public
389  License, v. 2.0. If a copy of the MPL was not distributed with this
390  file, You can obtain one at http://mozilla.org/MPL/2.0/.
391
392If it is not possible or desirable to put the notice in a particular
393file, then You may include the notice in a location (such as a LICENSE
394file in a relevant directory) where a recipient would be likely to look
395for such a notice.
396
397You may add additional accurate notices of copyright ownership.
398
399Exhibit B - "Incompatible With Secondary Licenses" Notice
400---------------------------------------------------------
401
402  This Source Code Form is "Incompatible With Secondary Licenses", as
403  defined by the Mozilla Public License, v. 2.0.
404