xref: /third_party/libcoap/LICENSE (revision c87c5fba)
1c87c5fbaSopenharmony_ciCopyright (c) 2010--2023, Olaf Bergmann and others
2c87c5fbaSopenharmony_ciAll rights reserved.
3c87c5fbaSopenharmony_ci
4c87c5fbaSopenharmony_ciRedistribution and use in source and binary forms, with or without
5c87c5fbaSopenharmony_cimodification, are permitted provided that the following conditions are
6c87c5fbaSopenharmony_cimet:
7c87c5fbaSopenharmony_ci
8c87c5fbaSopenharmony_ci  o Redistributions of source code must retain the above copyright
9c87c5fbaSopenharmony_ci    notice, this list of conditions and the following disclaimer.
10c87c5fbaSopenharmony_ci
11c87c5fbaSopenharmony_ci  o Redistributions in binary form must reproduce the above copyright
12c87c5fbaSopenharmony_ci    notice, this list of conditions and the following disclaimer in
13c87c5fbaSopenharmony_ci    the documentation and/or other materials provided with the
14c87c5fbaSopenharmony_ci    distribution.
15c87c5fbaSopenharmony_ci
16c87c5fbaSopenharmony_ciTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17c87c5fbaSopenharmony_ci"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18c87c5fbaSopenharmony_ciLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19c87c5fbaSopenharmony_ciA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20c87c5fbaSopenharmony_ciHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21c87c5fbaSopenharmony_ciSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22c87c5fbaSopenharmony_ciLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23c87c5fbaSopenharmony_ciDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24c87c5fbaSopenharmony_ciTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25c87c5fbaSopenharmony_ci(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26c87c5fbaSopenharmony_ciOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27c87c5fbaSopenharmony_ci
28c87c5fbaSopenharmony_ci========================================================================
29c87c5fbaSopenharmony_cigetopt.c
30c87c5fbaSopenharmony_ci
31c87c5fbaSopenharmony_ciLicense information for getopt.c. This file is only used on Windows
32c87c5fbaSopenharmony_cibuilds of the executables in the examples folder:
33c87c5fbaSopenharmony_ci
34c87c5fbaSopenharmony_ci/*
35c87c5fbaSopenharmony_ci * This file was copied from the following newsgroup posting:
36c87c5fbaSopenharmony_ci *
37c87c5fbaSopenharmony_ci * Newsgroups: mod.std.unix
38c87c5fbaSopenharmony_ci * Subject: public domain AT&T getopt source
39c87c5fbaSopenharmony_ci * Date: 3 Nov 85 19:34:15 GMT
40c87c5fbaSopenharmony_ci *
41c87c5fbaSopenharmony_ci * Here's something you've all been waiting for:  the AT&T public domain
42c87c5fbaSopenharmony_ci * source for getopt(3).  It is the code which was given out at the 1985
43c87c5fbaSopenharmony_ci * UNIFORUM conference in Dallas.  I obtained it by electronic mail
44c87c5fbaSopenharmony_ci * directly from AT&T.  The people there assure me that it is indeed
45c87c5fbaSopenharmony_ci * in the public domain.
46c87c5fbaSopenharmony_ci */
47c87c5fbaSopenharmony_ci
48c87c5fbaSopenharmony_ci========================================================================
49c87c5fbaSopenharmony_ciuthash
50c87c5fbaSopenharmony_ci
51c87c5fbaSopenharmony_cilibcoap uses uthash.h and utlist.h from Troy D. Hanson
52c87c5fbaSopenharmony_ci(https://troydhanson.github.io/uthash/). These files use the revised
53c87c5fbaSopenharmony_ciBSD license (BSD-1-Clause license) as included in these two source
54c87c5fbaSopenharmony_cifiles.  These files are named coap_uthash_internal.h and
55c87c5fbaSopenharmony_cicoap_utlist_internal.h respectively to make sure the correct versions
56c87c5fbaSopenharmony_ciare included.
57c87c5fbaSopenharmony_ci
58c87c5fbaSopenharmony_ci========================================================================
59c87c5fbaSopenharmony_cioscore cose
60c87c5fbaSopenharmony_ci
61c87c5fbaSopenharmony_ciCopyright (c) 2018, SICS, RISE AB
62c87c5fbaSopenharmony_ciAll rights reserved.
63c87c5fbaSopenharmony_ci
64c87c5fbaSopenharmony_ciRedistribution and use in source and binary forms, with or without
65c87c5fbaSopenharmony_cimodification, are permitted provided that the following conditions
66c87c5fbaSopenharmony_ciare met:
67c87c5fbaSopenharmony_ci1. Redistributions of source code must retain the above copyright
68c87c5fbaSopenharmony_ci   notice, this list of conditions and the following disclaimer.
69c87c5fbaSopenharmony_ci2. Redistributions in binary form must reproduce the above copyright
70c87c5fbaSopenharmony_ci   notice, this list of conditions and the following disclaimer in the
71c87c5fbaSopenharmony_ci   documentation and/or other materials provided with the distribution.
72c87c5fbaSopenharmony_ci3. Neither the name of the Institute nor the names of its contributors
73c87c5fbaSopenharmony_ci   may be used to endorse or promote products derived from this software
74c87c5fbaSopenharmony_ci   without specific prior written permission.
75c87c5fbaSopenharmony_ci
76c87c5fbaSopenharmony_ciTHIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
77c87c5fbaSopenharmony_ciANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
78c87c5fbaSopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
79c87c5fbaSopenharmony_ciARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
80c87c5fbaSopenharmony_ciFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
81c87c5fbaSopenharmony_ciDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
82c87c5fbaSopenharmony_ciOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
83c87c5fbaSopenharmony_ciHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
84c87c5fbaSopenharmony_ciLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
85c87c5fbaSopenharmony_ciOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
86c87c5fbaSopenharmony_ciSUCH DAMAGE.
87c87c5fbaSopenharmony_ci
88c87c5fbaSopenharmony_ci========================================================================
89c87c5fbaSopenharmony_ciOpenSSL
90c87c5fbaSopenharmony_ci
91c87c5fbaSopenharmony_ciBinaries that are linked against OpenSSL include software developed
92c87c5fbaSopenharmony_ciby the OpenSSL Project for use in the OpenSSL Toolkit.
93c87c5fbaSopenharmony_ci(http://www.openssl.org/). Please consult the OpenSSL license
94c87c5fbaSopenharmony_ci(https://www.openssl.org/source/license.html) for licensing terms.
95c87c5fbaSopenharmony_ci
96c87c5fbaSopenharmony_ci========================================================================
97c87c5fbaSopenharmony_ciGnuTLS
98c87c5fbaSopenharmony_ci
99c87c5fbaSopenharmony_ciWhen compiled with GnuTLS support, this software includes components
100c87c5fbaSopenharmony_cithat are licensed under the terms of the the GNU Lesser General Public
101c87c5fbaSopenharmony_ciLicense, version 2.1
102c87c5fbaSopenharmony_ci(https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html).
103c87c5fbaSopenharmony_ci
104c87c5fbaSopenharmony_ci========================================================================
105c87c5fbaSopenharmony_citinyDTLS
106c87c5fbaSopenharmony_ci
107c87c5fbaSopenharmony_ciWhen compiled with tinyDTLS support, this software includes components
108c87c5fbaSopenharmony_cithat are licensed under the terms of the Eclipse Distribution License 1.0
109c87c5fbaSopenharmony_ci(http://www.eclipse.org/org/documents/edl-v10.php).
110c87c5fbaSopenharmony_ci
111c87c5fbaSopenharmony_ci========================================================================
112c87c5fbaSopenharmony_ciMbed TLS
113c87c5fbaSopenharmony_ci
114c87c5fbaSopenharmony_ciWhen compiled with Mbed TLS support, this software includes components
115c87c5fbaSopenharmony_cithat are licensed under the terms of the Apache 2.0 license
116c87c5fbaSopenharmony_ci(http://www.apache.org/licenses/LICENSE-2.0).
117c87c5fbaSopenharmony_ci
118c87c5fbaSopenharmony_ci========================================================================
119c87c5fbaSopenharmony_ciRIOT
120c87c5fbaSopenharmony_ci
121c87c5fbaSopenharmony_ciWhen compiled with RIOT support, this software includes components
122c87c5fbaSopenharmony_cithat are licensed under the terms of the the GNU Lesser General Public
123c87c5fbaSopenharmony_ciLicense, version 2.1
124c87c5fbaSopenharmony_ci(https://raw.githubusercontent.com/RIOT-OS/RIOT/master/LICENSE).
125