hs: Improve warning for bad service version
[tor.git] / LICENSE
blob897f529b7b5285af6020172a2b75be8dad4dd9ff
1                     This file contains the license for Tor,
2         a free software project to provide anonymity on the Internet.
4         It also lists the licenses for other components used by Tor.
6        For more information about Tor, see https://www.torproject.org/.
8              If you got this file as a part of a larger bundle,
9         there may be other license terms that you should be aware of.
11 ===============================================================================
12 Tor is distributed under this license:
14 Copyright (c) 2001-2004, Roger Dingledine
15 Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson
16 Copyright (c) 2007-2019, The Tor Project, Inc.
18 Redistribution and use in source and binary forms, with or without
19 modification, are permitted provided that the following conditions are
20 met:
22     * Redistributions of source code must retain the above copyright
23 notice, this list of conditions and the following disclaimer.
25     * Redistributions in binary form must reproduce the above
26 copyright notice, this list of conditions and the following disclaimer
27 in the documentation and/or other materials provided with the
28 distribution.
30     * Neither the names of the copyright owners nor the names of its
31 contributors may be used to endorse or promote products derived from
32 this software without specific prior written permission.
34 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 ===============================================================================
46 src/ext/strlcat.c and src/ext/strlcpy.c by Todd C. Miller are licensed
47 under the following license:
49  * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
50  * All rights reserved.
51  *
52  * Redistribution and use in source and binary forms, with or without
53  * modification, are permitted provided that the following conditions
54  * are met:
55  * 1. Redistributions of source code must retain the above copyright
56  *    notice, this list of conditions and the following disclaimer.
57  * 2. Redistributions in binary form must reproduce the above copyright
58  *    notice, this list of conditions and the following disclaimer in the
59  *    documentation and/or other materials provided with the distribution.
60  * 3. The name of the author may not be used to endorse or promote products
61  *    derived from this software without specific prior written permission.
62  *
63  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
64  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
65  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
66  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
67  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
68  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
69  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
70  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
71  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
72  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
73 ===============================================================================
74 src/ext/tor_queue.h is licensed under the following license:
76  * Copyright (c) 1991, 1993
77  *      The Regents of the University of California.  All rights reserved.
78  *
79  * Redistribution and use in source and binary forms, with or without
80  * modification, are permitted provided that the following conditions
81  * are met:
82  * 1. Redistributions of source code must retain the above copyright
83  *    notice, this list of conditions and the following disclaimer.
84  * 2. Redistributions in binary form must reproduce the above copyright
85  *    notice, this list of conditions and the following disclaimer in the
86  *    documentation and/or other materials provided with the distribution.
87  * 3. Neither the name of the University nor the names of its contributors
88  *    may be used to endorse or promote products derived from this software
89  *    without specific prior written permission.
90  *
91  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
92  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
93  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
94  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
95  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
96  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
97  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
98  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
99  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
100  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
101  * SUCH DAMAGE.
103 ===============================================================================
104 src/ext/csiphash.c is licensed under the following license:
106  Copyright (c) 2013  Marek Majkowski <marek@popcount.org>
108  Permission is hereby granted, free of charge, to any person obtaining a copy
109  of this software and associated documentation files (the "Software"), to deal
110  in the Software without restriction, including without limitation the rights
111  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
112  copies of the Software, and to permit persons to whom the Software is
113  furnished to do so, subject to the following conditions:
115  The above copyright notice and this permission notice shall be included in
116  all copies or substantial portions of the Software.
118  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
119  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
120  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
121  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
122  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
123  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
124  THE SOFTWARE.
125 ===============================================================================
126 Trunnel is distributed under this license:
128 Copyright 2014  The Tor Project, Inc.
130 Redistribution and use in source and binary forms, with or without
131 modification, are permitted provided that the following conditions are
132 met:
134     * Redistributions of source code must retain the above copyright
135 notice, this list of conditions and the following disclaimer.
137     * Redistributions in binary form must reproduce the above
138 copyright notice, this list of conditions and the following disclaimer
139 in the documentation and/or other materials provided with the
140 distribution.
142     * Neither the names of the copyright owners nor the names of its
143 contributors may be used to endorse or promote products derived from
144 this software without specific prior written permission.
146 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
147 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
148 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
149 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
150 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
151 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
152 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
153 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
154 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
155 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
156 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
158 ===============================================================================
159 getdelim.c is distributed under this license:
161  Copyright (c) 2011 The NetBSD Foundation, Inc.
162  All rights reserved.
164  This code is derived from software contributed to The NetBSD Foundation
165  by Christos Zoulas.
167  Redistribution and use in source and binary forms, with or without
168  modification, are permitted provided that the following conditions
169  are met:
170  1. Redistributions of source code must retain the above copyright
171     notice, this list of conditions and the following disclaimer.
172  2. Redistributions in binary form must reproduce the above copyright
173     notice, this list of conditions and the following disclaimer in the
174     documentation and/or other materials provided with the distribution.
176  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
177  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
178  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
179  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
180  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
181  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
182  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
183  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
184  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
185  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
186  POSSIBILITY OF SUCH DAMAGE.
188 ===============================================================================
189 src/config/geoip and src/config/geoip6:
191 These files are based on the IPFire Location Database. For more
192 information, see https://location.ipfire.org/.
194 The data is distributed under a creative commons "BY-SA 4.0" license.
196 Find the full license terms at:
197      https://creativecommons.org/licenses/by-sa/4.0/
199 ===============================================================================
200 m4/pc_from_ucontext.m4 is available under the following license.  Note that
201 it is *not* built into the Tor software.
203 Copyright (c) 2005, Google Inc.
204 All rights reserved.
206 Redistribution and use in source and binary forms, with or without
207 modification, are permitted provided that the following conditions are
208 met:
210     * Redistributions of source code must retain the above copyright
211 notice, this list of conditions and the following disclaimer.
212     * Redistributions in binary form must reproduce the above
213 copyright notice, this list of conditions and the following disclaimer
214 in the documentation and/or other materials provided with the
215 distribution.
216     * Neither the name of Google Inc. nor the names of its
217 contributors may be used to endorse or promote products derived from
218 this software without specific prior written permission.
220 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
221 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
222 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
223 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
224 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
225 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
226 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
227 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
228 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
229 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
230 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
232 ===============================================================================
233 m4/pkg.m4 is available under the following license.  Note that
234 it is *not* built into the Tor software.
236 pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
237 serial 1 (pkg-config-0.24)
239 Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
241 This program is free software; you can redistribute it and/or modify
242 it under the terms of the GNU General Public License as published by
243 the Free Software Foundation; either version 2 of the License, or
244 (at your option) any later version.
246 This program is distributed in the hope that it will be useful, but
247 WITHOUT ANY WARRANTY; without even the implied warranty of
248 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
249 General Public License for more details.
251 You should have received a copy of the GNU General Public License
252 along with this program; if not, write to the Free Software
253 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
255 As a special exception to the GNU General Public License, if you
256 distribute this file as part of a program that contains a
257 configuration script generated by Autoconf, you may include it under
258 the same distribution terms that you use for the rest of that program.
259 ===============================================================================
260 src/ext/readpassphrase.[ch] are distributed under this license:
262   Copyright (c) 2000-2002, 2007 Todd C. Miller <Todd.Miller@courtesan.com>
264   Permission to use, copy, modify, and distribute this software for any
265   purpose with or without fee is hereby granted, provided that the above
266   copyright notice and this permission notice appear in all copies.
268   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
269   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
270   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
271   ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
272   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
273   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
274   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
276   Sponsored in part by the Defense Advanced Research Projects
277   Agency (DARPA) and Air Force Research Laboratory, Air Force
278   Materiel Command, USAF, under agreement number F39502-99-1-0512.
280 ===============================================================================
281 src/ext/mulodi4.c is distributed under this license:
283      =========================================================================
284      compiler_rt License
285      =========================================================================
287      The compiler_rt library is dual licensed under both the
288      University of Illinois "BSD-Like" license and the MIT license.
289      As a user of this code you may choose to use it under either
290      license.  As a contributor, you agree to allow your code to be
291      used under both.
293      Full text of the relevant licenses is included below.
295      =========================================================================
297      University of Illinois/NCSA
298      Open Source License
300      Copyright (c) 2009-2016 by the contributors listed in CREDITS.TXT
302      All rights reserved.
304      Developed by:
306          LLVM Team
308          University of Illinois at Urbana-Champaign
310          http://llvm.org
312      Permission is hereby granted, free of charge, to any person
313      obtaining a copy of this software and associated documentation
314      files (the "Software"), to deal with the Software without
315      restriction, including without limitation the rights to use,
316      copy, modify, merge, publish, distribute, sublicense, and/or sell
317      copies of the Software, and to permit persons to whom the
318      Software is furnished to do so, subject to the following
319      conditions:
321          * Redistributions of source code must retain the above
322            copyright notice, this list of conditions and the following
323            disclaimers.
325          * Redistributions in binary form must reproduce the above
326            copyright notice, this list of conditions and the following
327            disclaimers in the documentation and/or other materials
328            provided with the distribution.
330          * Neither the names of the LLVM Team, University of Illinois
331            at Urbana-Champaign, nor the names of its contributors may
332            be used to endorse or promote products derived from this
333            Software without specific prior written permission.
335      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
336      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
337      OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
338      NONINFRINGEMENT.  IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
339      HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
340      WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
341      FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
342      OTHER DEALINGS WITH THE SOFTWARE.
344      =========================================================================
346      Copyright (c) 2009-2015 by the contributors listed in CREDITS.TXT
348      Permission is hereby granted, free of charge, to any person
349      obtaining a copy of this software and associated documentation
350      files (the "Software"), to deal in the Software without
351      restriction, including without limitation the rights to use,
352      copy, modify, merge, publish, distribute, sublicense, and/or sell
353      copies of the Software, and to permit persons to whom the
354      Software is furnished to do so, subject to the following
355      conditions:
357      The above copyright notice and this permission notice shall be
358      included in all copies or substantial portions of the Software.
360      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
361      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
362      OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
363      NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
364      HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
365      WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
366      FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
367      OTHER DEALINGS IN THE SOFTWARE.
369      =========================================================================
370      Copyrights and Licenses for Third Party Software Distributed with LLVM:
371      =========================================================================
373      The LLVM software contains code written by third parties.  Such
374      software will have its own individual LICENSE.TXT file in the
375      directory in which it appears.  This file will describe the
376      copyrights, license, and restrictions which apply to that code.
378      The disclaimer of warranty in the University of Illinois Open
379      Source License applies to all code in the LLVM Distribution, and
380      nothing in any of the other licenses gives permission to use the
381      names of the LLVM Team or the University of Illinois to endorse
382      or promote products derived from this Software.
384 ===============================================================================
385 If you got Tor as a static binary with OpenSSL included, then you should know:
386  "This product includes software developed by the OpenSSL Project
387  for use in the OpenSSL Toolkit (http://www.openssl.org/)"
388 ===============================================================================