···1+MIT License
2+3+Copyright (c) 2016-2023 The Godot Engine community
4+5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
···1+# Third-Party Notices
2+3+The Godot Git Plugin source code uses the following third-party source code:
4+5+1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c
6+2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d
7+3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8
8+4. openssl - OpenSSL License - https://github.com/openssl/openssl/tree/26baecb28ce461696966dac9ac889629db0b3b96
9+10+## License Texts
11+12+### godotengine/godot-cpp
13+14+```
15+# MIT License
16+17+Copyright (c) 2017-2022 Godot Engine contributors.
18+19+Permission is hereby granted, free of charge, to any person obtaining a copy
20+of this software and associated documentation files (the "Software"), to deal
21+in the Software without restriction, including without limitation the rights
22+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23+copies of the Software, and to permit persons to whom the Software is
24+furnished to do so, subject to the following conditions:
25+26+The above copyright notice and this permission notice shall be included in all
27+copies or substantial portions of the Software.
28+29+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+SOFTWARE.
36+```
37+38+### libgit2/libgit2
39+40+```
41+ libgit2 is Copyright (C) the libgit2 contributors,
42+ unless otherwise stated. See the AUTHORS file for details.
43+44+ Note that the only valid version of the GPL as far as this project
45+ is concerned is _this_ particular version of the license (ie v2, not
46+ v2.2 or v3.x or whatever), unless explicitly otherwise stated.
47+48+----------------------------------------------------------------------
49+50+ LINKING EXCEPTION
51+52+ In addition to the permissions in the GNU General Public License,
53+ the authors give you unlimited permission to link the compiled
54+ version of this library into combinations with other programs,
55+ and to distribute those combinations without any restriction
56+ coming from the use of this file. (The General Public License
57+ restrictions do apply in other respects; for example, they cover
58+ modification of the file, and distribution when not linked into
59+ a combined executable.)
60+61+----------------------------------------------------------------------
62+63+ GNU GENERAL PUBLIC LICENSE
64+ Version 2, June 1991
65+66+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
67+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
68+ Everyone is permitted to copy and distribute verbatim copies
69+ of this license document, but changing it is not allowed.
70+71+ Preamble
72+73+ The licenses for most software are designed to take away your
74+freedom to share and change it. By contrast, the GNU General Public
75+License is intended to guarantee your freedom to share and change free
76+software--to make sure the software is free for all its users. This
77+General Public License applies to most of the Free Software
78+Foundation's software and to any other program whose authors commit to
79+using it. (Some other Free Software Foundation software is covered by
80+the GNU Library General Public License instead.) You can apply it to
81+your programs, too.
82+83+ When we speak of free software, we are referring to freedom, not
84+price. Our General Public Licenses are designed to make sure that you
85+have the freedom to distribute copies of free software (and charge for
86+this service if you wish), that you receive source code or can get it
87+if you want it, that you can change the software or use pieces of it
88+in new free programs; and that you know you can do these things.
89+90+ To protect your rights, we need to make restrictions that forbid
91+anyone to deny you these rights or to ask you to surrender the rights.
92+These restrictions translate to certain responsibilities for you if you
93+distribute copies of the software, or if you modify it.
94+95+ For example, if you distribute copies of such a program, whether
96+gratis or for a fee, you must give the recipients all the rights that
97+you have. You must make sure that they, too, receive or can get the
98+source code. And you must show them these terms so they know their
99+rights.
100+101+ We protect your rights with two steps: (1) copyright the software, and
102+(2) offer you this license which gives you legal permission to copy,
103+distribute and/or modify the software.
104+105+ Also, for each author's protection and ours, we want to make certain
106+that everyone understands that there is no warranty for this free
107+software. If the software is modified by someone else and passed on, we
108+want its recipients to know that what they have is not the original, so
109+that any problems introduced by others will not reflect on the original
110+authors' reputations.
111+112+ Finally, any free program is threatened constantly by software
113+patents. We wish to avoid the danger that redistributors of a free
114+program will individually obtain patent licenses, in effect making the
115+program proprietary. To prevent this, we have made it clear that any
116+patent must be licensed for everyone's free use or not licensed at all.
117+118+ The precise terms and conditions for copying, distribution and
119+modification follow.
120+121+ GNU GENERAL PUBLIC LICENSE
122+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
123+124+ 0. This License applies to any program or other work which contains
125+a notice placed by the copyright holder saying it may be distributed
126+under the terms of this General Public License. The "Program", below,
127+refers to any such program or work, and a "work based on the Program"
128+means either the Program or any derivative work under copyright law:
129+that is to say, a work containing the Program or a portion of it,
130+either verbatim or with modifications and/or translated into another
131+language. (Hereinafter, translation is included without limitation in
132+the term "modification".) Each licensee is addressed as "you".
133+134+Activities other than copying, distribution and modification are not
135+covered by this License; they are outside its scope. The act of
136+running the Program is not restricted, and the output from the Program
137+is covered only if its contents constitute a work based on the
138+Program (independent of having been made by running the Program).
139+Whether that is true depends on what the Program does.
140+141+ 1. You may copy and distribute verbatim copies of the Program's
142+source code as you receive it, in any medium, provided that you
143+conspicuously and appropriately publish on each copy an appropriate
144+copyright notice and disclaimer of warranty; keep intact all the
145+notices that refer to this License and to the absence of any warranty;
146+and give any other recipients of the Program a copy of this License
147+along with the Program.
148+149+You may charge a fee for the physical act of transferring a copy, and
150+you may at your option offer warranty protection in exchange for a fee.
151+152+ 2. You may modify your copy or copies of the Program or any portion
153+of it, thus forming a work based on the Program, and copy and
154+distribute such modifications or work under the terms of Section 1
155+above, provided that you also meet all of these conditions:
156+157+ a) You must cause the modified files to carry prominent notices
158+ stating that you changed the files and the date of any change.
159+160+ b) You must cause any work that you distribute or publish, that in
161+ whole or in part contains or is derived from the Program or any
162+ part thereof, to be licensed as a whole at no charge to all third
163+ parties under the terms of this License.
164+165+ c) If the modified program normally reads commands interactively
166+ when run, you must cause it, when started running for such
167+ interactive use in the most ordinary way, to print or display an
168+ announcement including an appropriate copyright notice and a
169+ notice that there is no warranty (or else, saying that you provide
170+ a warranty) and that users may redistribute the program under
171+ these conditions, and telling the user how to view a copy of this
172+ License. (Exception: if the Program itself is interactive but
173+ does not normally print such an announcement, your work based on
174+ the Program is not required to print an announcement.)
175+176+These requirements apply to the modified work as a whole. If
177+identifiable sections of that work are not derived from the Program,
178+and can be reasonably considered independent and separate works in
179+themselves, then this License, and its terms, do not apply to those
180+sections when you distribute them as separate works. But when you
181+distribute the same sections as part of a whole which is a work based
182+on the Program, the distribution of the whole must be on the terms of
183+this License, whose permissions for other licensees extend to the
184+entire whole, and thus to each and every part regardless of who wrote it.
185+186+Thus, it is not the intent of this section to claim rights or contest
187+your rights to work written entirely by you; rather, the intent is to
188+exercise the right to control the distribution of derivative or
189+collective works based on the Program.
190+191+In addition, mere aggregation of another work not based on the Program
192+with the Program (or with a work based on the Program) on a volume of
193+a storage or distribution medium does not bring the other work under
194+the scope of this License.
195+196+ 3. You may copy and distribute the Program (or a work based on it,
197+under Section 2) in object code or executable form under the terms of
198+Sections 1 and 2 above provided that you also do one of the following:
199+200+ a) Accompany it with the complete corresponding machine-readable
201+ source code, which must be distributed under the terms of Sections
202+ 1 and 2 above on a medium customarily used for software interchange; or,
203+204+ b) Accompany it with a written offer, valid for at least three
205+ years, to give any third party, for a charge no more than your
206+ cost of physically performing source distribution, a complete
207+ machine-readable copy of the corresponding source code, to be
208+ distributed under the terms of Sections 1 and 2 above on a medium
209+ customarily used for software interchange; or,
210+211+ c) Accompany it with the information you received as to the offer
212+ to distribute corresponding source code. (This alternative is
213+ allowed only for noncommercial distribution and only if you
214+ received the program in object code or executable form with such
215+ an offer, in accord with Subsection b above.)
216+217+The source code for a work means the preferred form of the work for
218+making modifications to it. For an executable work, complete source
219+code means all the source code for all modules it contains, plus any
220+associated interface definition files, plus the scripts used to
221+control compilation and installation of the executable. However, as a
222+special exception, the source code distributed need not include
223+anything that is normally distributed (in either source or binary
224+form) with the major components (compiler, kernel, and so on) of the
225+operating system on which the executable runs, unless that component
226+itself accompanies the executable.
227+228+If distribution of executable or object code is made by offering
229+access to copy from a designated place, then offering equivalent
230+access to copy the source code from the same place counts as
231+distribution of the source code, even though third parties are not
232+compelled to copy the source along with the object code.
233+234+ 4. You may not copy, modify, sublicense, or distribute the Program
235+except as expressly provided under this License. Any attempt
236+otherwise to copy, modify, sublicense or distribute the Program is
237+void, and will automatically terminate your rights under this License.
238+However, parties who have received copies, or rights, from you under
239+this License will not have their licenses terminated so long as such
240+parties remain in full compliance.
241+242+ 5. You are not required to accept this License, since you have not
243+signed it. However, nothing else grants you permission to modify or
244+distribute the Program or its derivative works. These actions are
245+prohibited by law if you do not accept this License. Therefore, by
246+modifying or distributing the Program (or any work based on the
247+Program), you indicate your acceptance of this License to do so, and
248+all its terms and conditions for copying, distributing or modifying
249+the Program or works based on it.
250+251+ 6. Each time you redistribute the Program (or any work based on the
252+Program), the recipient automatically receives a license from the
253+original licensor to copy, distribute or modify the Program subject to
254+these terms and conditions. You may not impose any further
255+restrictions on the recipients' exercise of the rights granted herein.
256+You are not responsible for enforcing compliance by third parties to
257+this License.
258+259+ 7. If, as a consequence of a court judgment or allegation of patent
260+infringement or for any other reason (not limited to patent issues),
261+conditions are imposed on you (whether by court order, agreement or
262+otherwise) that contradict the conditions of this License, they do not
263+excuse you from the conditions of this License. If you cannot
264+distribute so as to satisfy simultaneously your obligations under this
265+License and any other pertinent obligations, then as a consequence you
266+may not distribute the Program at all. For example, if a patent
267+license would not permit royalty-free redistribution of the Program by
268+all those who receive copies directly or indirectly through you, then
269+the only way you could satisfy both it and this License would be to
270+refrain entirely from distribution of the Program.
271+272+If any portion of this section is held invalid or unenforceable under
273+any particular circumstance, the balance of the section is intended to
274+apply and the section as a whole is intended to apply in other
275+circumstances.
276+277+It is not the purpose of this section to induce you to infringe any
278+patents or other property right claims or to contest validity of any
279+such claims; this section has the sole purpose of protecting the
280+integrity of the free software distribution system, which is
281+implemented by public license practices. Many people have made
282+generous contributions to the wide range of software distributed
283+through that system in reliance on consistent application of that
284+system; it is up to the author/donor to decide if he or she is willing
285+to distribute software through any other system and a licensee cannot
286+impose that choice.
287+288+This section is intended to make thoroughly clear what is believed to
289+be a consequence of the rest of this License.
290+291+ 8. If the distribution and/or use of the Program is restricted in
292+certain countries either by patents or by copyrighted interfaces, the
293+original copyright holder who places the Program under this License
294+may add an explicit geographical distribution limitation excluding
295+those countries, so that distribution is permitted only in or among
296+countries not thus excluded. In such case, this License incorporates
297+the limitation as if written in the body of this License.
298+299+ 9. The Free Software Foundation may publish revised and/or new versions
300+of the General Public License from time to time. Such new versions will
301+be similar in spirit to the present version, but may differ in detail to
302+address new problems or concerns.
303+304+Each version is given a distinguishing version number. If the Program
305+specifies a version number of this License which applies to it and "any
306+later version", you have the option of following the terms and conditions
307+either of that version or of any later version published by the Free
308+Software Foundation. If the Program does not specify a version number of
309+this License, you may choose any version ever published by the Free Software
310+Foundation.
311+312+ 10. If you wish to incorporate parts of the Program into other free
313+programs whose distribution conditions are different, write to the author
314+to ask for permission. For software which is copyrighted by the Free
315+Software Foundation, write to the Free Software Foundation; we sometimes
316+make exceptions for this. Our decision will be guided by the two goals
317+of preserving the free status of all derivatives of our free software and
318+of promoting the sharing and reuse of software generally.
319+320+ NO WARRANTY
321+322+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
323+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
324+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
325+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
326+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
327+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
328+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
329+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
330+REPAIR OR CORRECTION.
331+332+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
333+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
334+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
335+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
336+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
337+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
338+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
339+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
340+POSSIBILITY OF SUCH DAMAGES.
341+342+ END OF TERMS AND CONDITIONS
343+344+ How to Apply These Terms to Your New Programs
345+346+ If you develop a new program, and you want it to be of the greatest
347+possible use to the public, the best way to achieve this is to make it
348+free software which everyone can redistribute and change under these terms.
349+350+ To do so, attach the following notices to the program. It is safest
351+to attach them to the start of each source file to most effectively
352+convey the exclusion of warranty; and each file should have at least
353+the "copyright" line and a pointer to where the full notice is found.
354+355+ <one line to give the program's name and a brief idea of what it does.>
356+ Copyright (C) <year> <name of author>
357+358+ This program is free software; you can redistribute it and/or modify
359+ it under the terms of the GNU General Public License as published by
360+ the Free Software Foundation; either version 2 of the License, or
361+ (at your option) any later version.
362+363+ This program is distributed in the hope that it will be useful,
364+ but WITHOUT ANY WARRANTY; without even the implied warranty of
365+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
366+ GNU General Public License for more details.
367+368+ You should have received a copy of the GNU General Public License
369+ along with this program; if not, write to the Free Software
370+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
371+372+373+Also add information on how to contact you by electronic and paper mail.
374+375+If the program is interactive, make it output a short notice like this
376+when it starts in an interactive mode:
377+378+ Gnomovision version 69, Copyright (C) year name of author
379+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
380+ This is free software, and you are welcome to redistribute it
381+ under certain conditions; type `show c' for details.
382+383+The hypothetical commands `show w' and `show c' should show the appropriate
384+parts of the General Public License. Of course, the commands you use may
385+be called something other than `show w' and `show c'; they could even be
386+mouse-clicks or menu items--whatever suits your program.
387+388+You should also get your employer (if you work as a programmer) or your
389+school, if any, to sign a "copyright disclaimer" for the program, if
390+necessary. Here is a sample; alter the names:
391+392+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
393+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
394+395+ <signature of Ty Coon>, 1 April 1989
396+ Ty Coon, President of Vice
397+398+This General Public License does not permit incorporating your program into
399+proprietary programs. If your program is a subroutine library, you may
400+consider it more useful to permit linking proprietary applications with the
401+library. If this is what you want to do, use the GNU Library General
402+Public License instead of this License.
403+404+----------------------------------------------------------------------
405+406+The bundled ZLib code is licensed under the ZLib license:
407+408+Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
409+410+ This software is provided 'as-is', without any express or implied
411+ warranty. In no event will the authors be held liable for any damages
412+ arising from the use of this software.
413+414+ Permission is granted to anyone to use this software for any purpose,
415+ including commercial applications, and to alter it and redistribute it
416+ freely, subject to the following restrictions:
417+418+ 1. The origin of this software must not be misrepresented; you must not
419+ claim that you wrote the original software. If you use this software
420+ in a product, an acknowledgment in the product documentation would be
421+ appreciated but is not required.
422+ 2. Altered source versions must be plainly marked as such, and must not be
423+ misrepresented as being the original software.
424+ 3. This notice may not be removed or altered from any source distribution.
425+426+ Jean-loup Gailly Mark Adler
427+ jloup@gzip.org madler@alumni.caltech.edu
428+429+----------------------------------------------------------------------
430+431+The Clar framework is licensed under the ISC license:
432+433+Copyright (c) 2011-2015 Vicent Marti
434+435+Permission to use, copy, modify, and/or distribute this software for any
436+purpose with or without fee is hereby granted, provided that the above
437+copyright notice and this permission notice appear in all copies.
438+439+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
440+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
441+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
442+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
443+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
444+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
445+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
446+447+----------------------------------------------------------------------
448+449+The regex library (deps/regex/) is licensed under the GNU LGPL
450+(available at the end of this file).
451+452+Definitions for data structures and routines for the regular
453+expression library.
454+455+Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008
456+Free Software Foundation, Inc.
457+This file is part of the GNU C Library.
458+459+The GNU C Library is free software; you can redistribute it and/or
460+modify it under the terms of the GNU Lesser General Public
461+License as published by the Free Software Foundation; either
462+version 2.1 of the License, or (at your option) any later version.
463+464+The GNU C Library is distributed in the hope that it will be useful,
465+but WITHOUT ANY WARRANTY; without even the implied warranty of
466+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
467+Lesser General Public License for more details.
468+469+You should have received a copy of the GNU Lesser General Public
470+License along with the GNU C Library; if not, write to the Free
471+Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
472+02110-1301 USA.
473+474+----------------------------------------------------------------------
475+476+The bundled winhttp definition files (deps/winhttp/) are licensed under
477+the GNU LGPL (available at the end of this file).
478+479+Copyright (C) 2007 Francois Gouget
480+481+This library is free software; you can redistribute it and/or
482+modify it under the terms of the GNU Lesser General Public
483+License as published by the Free Software Foundation; either
484+version 2.1 of the License, or (at your option) any later version.
485+486+This library is distributed in the hope that it will be useful,
487+but WITHOUT ANY WARRANTY; without even the implied warranty of
488+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
489+Lesser General Public License for more details.
490+491+You should have received a copy of the GNU Lesser General Public
492+License along with this library; if not, write to the Free Software
493+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
494+495+----------------------------------------------------------------------
496+497+ GNU LESSER GENERAL PUBLIC LICENSE
498+ Version 2.1, February 1999
499+500+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
501+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
502+ Everyone is permitted to copy and distribute verbatim copies
503+ of this license document, but changing it is not allowed.
504+505+[This is the first released version of the Lesser GPL. It also counts
506+ as the successor of the GNU Library Public License, version 2, hence
507+ the version number 2.1.]
508+509+ Preamble
510+511+ The licenses for most software are designed to take away your
512+freedom to share and change it. By contrast, the GNU General Public
513+Licenses are intended to guarantee your freedom to share and change
514+free software--to make sure the software is free for all its users.
515+516+ This license, the Lesser General Public License, applies to some
517+specially designated software packages--typically libraries--of the
518+Free Software Foundation and other authors who decide to use it. You
519+can use it too, but we suggest you first think carefully about whether
520+this license or the ordinary General Public License is the better
521+strategy to use in any particular case, based on the explanations below.
522+523+ When we speak of free software, we are referring to freedom of use,
524+not price. Our General Public Licenses are designed to make sure that
525+you have the freedom to distribute copies of free software (and charge
526+for this service if you wish); that you receive source code or can get
527+it if you want it; that you can change the software and use pieces of
528+it in new free programs; and that you are informed that you can do
529+these things.
530+531+ To protect your rights, we need to make restrictions that forbid
532+distributors to deny you these rights or to ask you to surrender these
533+rights. These restrictions translate to certain responsibilities for
534+you if you distribute copies of the library or if you modify it.
535+536+ For example, if you distribute copies of the library, whether gratis
537+or for a fee, you must give the recipients all the rights that we gave
538+you. You must make sure that they, too, receive or can get the source
539+code. If you link other code with the library, you must provide
540+complete object files to the recipients, so that they can relink them
541+with the library after making changes to the library and recompiling
542+it. And you must show them these terms so they know their rights.
543+544+ We protect your rights with a two-step method: (1) we copyright the
545+library, and (2) we offer you this license, which gives you legal
546+permission to copy, distribute and/or modify the library.
547+548+ To protect each distributor, we want to make it very clear that
549+there is no warranty for the free library. Also, if the library is
550+modified by someone else and passed on, the recipients should know
551+that what they have is not the original version, so that the original
552+author's reputation will not be affected by problems that might be
553+introduced by others.
554+555+ Finally, software patents pose a constant threat to the existence of
556+any free program. We wish to make sure that a company cannot
557+effectively restrict the users of a free program by obtaining a
558+restrictive license from a patent holder. Therefore, we insist that
559+any patent license obtained for a version of the library must be
560+consistent with the full freedom of use specified in this license.
561+562+ Most GNU software, including some libraries, is covered by the
563+ordinary GNU General Public License. This license, the GNU Lesser
564+General Public License, applies to certain designated libraries, and
565+is quite different from the ordinary General Public License. We use
566+this license for certain libraries in order to permit linking those
567+libraries into non-free programs.
568+569+ When a program is linked with a library, whether statically or using
570+a shared library, the combination of the two is legally speaking a
571+combined work, a derivative of the original library. The ordinary
572+General Public License therefore permits such linking only if the
573+entire combination fits its criteria of freedom. The Lesser General
574+Public License permits more lax criteria for linking other code with
575+the library.
576+577+ We call this license the "Lesser" General Public License because it
578+does Less to protect the user's freedom than the ordinary General
579+Public License. It also provides other free software developers Less
580+of an advantage over competing non-free programs. These disadvantages
581+are the reason we use the ordinary General Public License for many
582+libraries. However, the Lesser license provides advantages in certain
583+special circumstances.
584+585+ For example, on rare occasions, there may be a special need to
586+encourage the widest possible use of a certain library, so that it becomes
587+a de-facto standard. To achieve this, non-free programs must be
588+allowed to use the library. A more frequent case is that a free
589+library does the same job as widely used non-free libraries. In this
590+case, there is little to gain by limiting the free library to free
591+software only, so we use the Lesser General Public License.
592+593+ In other cases, permission to use a particular library in non-free
594+programs enables a greater number of people to use a large body of
595+free software. For example, permission to use the GNU C Library in
596+non-free programs enables many more people to use the whole GNU
597+operating system, as well as its variant, the GNU/Linux operating
598+system.
599+600+ Although the Lesser General Public License is Less protective of the
601+users' freedom, it does ensure that the user of a program that is
602+linked with the Library has the freedom and the wherewithal to run
603+that program using a modified version of the Library.
604+605+ The precise terms and conditions for copying, distribution and
606+modification follow. Pay close attention to the difference between a
607+"work based on the library" and a "work that uses the library". The
608+former contains code derived from the library, whereas the latter must
609+be combined with the library in order to run.
610+611+ GNU LESSER GENERAL PUBLIC LICENSE
612+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
613+614+ 0. This License Agreement applies to any software library or other
615+program which contains a notice placed by the copyright holder or
616+other authorized party saying it may be distributed under the terms of
617+this Lesser General Public License (also called "this License").
618+Each licensee is addressed as "you".
619+620+ A "library" means a collection of software functions and/or data
621+prepared so as to be conveniently linked with application programs
622+(which use some of those functions and data) to form executables.
623+624+ The "Library", below, refers to any such software library or work
625+which has been distributed under these terms. A "work based on the
626+Library" means either the Library or any derivative work under
627+copyright law: that is to say, a work containing the Library or a
628+portion of it, either verbatim or with modifications and/or translated
629+straightforwardly into another language. (Hereinafter, translation is
630+included without limitation in the term "modification".)
631+632+ "Source code" for a work means the preferred form of the work for
633+making modifications to it. For a library, complete source code means
634+all the source code for all modules it contains, plus any associated
635+interface definition files, plus the scripts used to control compilation
636+and installation of the library.
637+638+ Activities other than copying, distribution and modification are not
639+covered by this License; they are outside its scope. The act of
640+running a program using the Library is not restricted, and output from
641+such a program is covered only if its contents constitute a work based
642+on the Library (independent of the use of the Library in a tool for
643+writing it). Whether that is true depends on what the Library does
644+and what the program that uses the Library does.
645+646+ 1. You may copy and distribute verbatim copies of the Library's
647+complete source code as you receive it, in any medium, provided that
648+you conspicuously and appropriately publish on each copy an
649+appropriate copyright notice and disclaimer of warranty; keep intact
650+all the notices that refer to this License and to the absence of any
651+warranty; and distribute a copy of this License along with the
652+Library.
653+654+ You may charge a fee for the physical act of transferring a copy,
655+and you may at your option offer warranty protection in exchange for a
656+fee.
657+658+ 2. You may modify your copy or copies of the Library or any portion
659+of it, thus forming a work based on the Library, and copy and
660+distribute such modifications or work under the terms of Section 1
661+above, provided that you also meet all of these conditions:
662+663+ a) The modified work must itself be a software library.
664+665+ b) You must cause the files modified to carry prominent notices
666+ stating that you changed the files and the date of any change.
667+668+ c) You must cause the whole of the work to be licensed at no
669+ charge to all third parties under the terms of this License.
670+671+ d) If a facility in the modified Library refers to a function or a
672+ table of data to be supplied by an application program that uses
673+ the facility, other than as an argument passed when the facility
674+ is invoked, then you must make a good faith effort to ensure that,
675+ in the event an application does not supply such function or
676+ table, the facility still operates, and performs whatever part of
677+ its purpose remains meaningful.
678+679+ (For example, a function in a library to compute square roots has
680+ a purpose that is entirely well-defined independent of the
681+ application. Therefore, Subsection 2d requires that any
682+ application-supplied function or table used by this function must
683+ be optional: if the application does not supply it, the square
684+ root function must still compute square roots.)
685+686+These requirements apply to the modified work as a whole. If
687+identifiable sections of that work are not derived from the Library,
688+and can be reasonably considered independent and separate works in
689+themselves, then this License, and its terms, do not apply to those
690+sections when you distribute them as separate works. But when you
691+distribute the same sections as part of a whole which is a work based
692+on the Library, the distribution of the whole must be on the terms of
693+this License, whose permissions for other licensees extend to the
694+entire whole, and thus to each and every part regardless of who wrote
695+it.
696+697+Thus, it is not the intent of this section to claim rights or contest
698+your rights to work written entirely by you; rather, the intent is to
699+exercise the right to control the distribution of derivative or
700+collective works based on the Library.
701+702+In addition, mere aggregation of another work not based on the Library
703+with the Library (or with a work based on the Library) on a volume of
704+a storage or distribution medium does not bring the other work under
705+the scope of this License.
706+707+ 3. You may opt to apply the terms of the ordinary GNU General Public
708+License instead of this License to a given copy of the Library. To do
709+this, you must alter all the notices that refer to this License, so
710+that they refer to the ordinary GNU General Public License, version 2,
711+instead of to this License. (If a newer version than version 2 of the
712+ordinary GNU General Public License has appeared, then you can specify
713+that version instead if you wish.) Do not make any other change in
714+these notices.
715+716+ Once this change is made in a given copy, it is irreversible for
717+that copy, so the ordinary GNU General Public License applies to all
718+subsequent copies and derivative works made from that copy.
719+720+ This option is useful when you wish to copy part of the code of
721+the Library into a program that is not a library.
722+723+ 4. You may copy and distribute the Library (or a portion or
724+derivative of it, under Section 2) in object code or executable form
725+under the terms of Sections 1 and 2 above provided that you accompany
726+it with the complete corresponding machine-readable source code, which
727+must be distributed under the terms of Sections 1 and 2 above on a
728+medium customarily used for software interchange.
729+730+ If distribution of object code is made by offering access to copy
731+from a designated place, then offering equivalent access to copy the
732+source code from the same place satisfies the requirement to
733+distribute the source code, even though third parties are not
734+compelled to copy the source along with the object code.
735+736+ 5. A program that contains no derivative of any portion of the
737+Library, but is designed to work with the Library by being compiled or
738+linked with it, is called a "work that uses the Library". Such a
739+work, in isolation, is not a derivative work of the Library, and
740+therefore falls outside the scope of this License.
741+742+ However, linking a "work that uses the Library" with the Library
743+creates an executable that is a derivative of the Library (because it
744+contains portions of the Library), rather than a "work that uses the
745+library". The executable is therefore covered by this License.
746+Section 6 states terms for distribution of such executables.
747+748+ When a "work that uses the Library" uses material from a header file
749+that is part of the Library, the object code for the work may be a
750+derivative work of the Library even though the source code is not.
751+Whether this is true is especially significant if the work can be
752+linked without the Library, or if the work is itself a library. The
753+threshold for this to be true is not precisely defined by law.
754+755+ If such an object file uses only numerical parameters, data
756+structure layouts and accessors, and small macros and small inline
757+functions (ten lines or less in length), then the use of the object
758+file is unrestricted, regardless of whether it is legally a derivative
759+work. (Executables containing this object code plus portions of the
760+Library will still fall under Section 6.)
761+762+ Otherwise, if the work is a derivative of the Library, you may
763+distribute the object code for the work under the terms of Section 6.
764+Any executables containing that work also fall under Section 6,
765+whether or not they are linked directly with the Library itself.
766+767+ 6. As an exception to the Sections above, you may also combine or
768+link a "work that uses the Library" with the Library to produce a
769+work containing portions of the Library, and distribute that work
770+under terms of your choice, provided that the terms permit
771+modification of the work for the customer's own use and reverse
772+engineering for debugging such modifications.
773+774+ You must give prominent notice with each copy of the work that the
775+Library is used in it and that the Library and its use are covered by
776+this License. You must supply a copy of this License. If the work
777+during execution displays copyright notices, you must include the
778+copyright notice for the Library among them, as well as a reference
779+directing the user to the copy of this License. Also, you must do one
780+of these things:
781+782+ a) Accompany the work with the complete corresponding
783+ machine-readable source code for the Library including whatever
784+ changes were used in the work (which must be distributed under
785+ Sections 1 and 2 above); and, if the work is an executable linked
786+ with the Library, with the complete machine-readable "work that
787+ uses the Library", as object code and/or source code, so that the
788+ user can modify the Library and then relink to produce a modified
789+ executable containing the modified Library. (It is understood
790+ that the user who changes the contents of definitions files in the
791+ Library will not necessarily be able to recompile the application
792+ to use the modified definitions.)
793+794+ b) Use a suitable shared library mechanism for linking with the
795+ Library. A suitable mechanism is one that (1) uses at run time a
796+ copy of the library already present on the user's computer system,
797+ rather than copying library functions into the executable, and (2)
798+ will operate properly with a modified version of the library, if
799+ the user installs one, as long as the modified version is
800+ interface-compatible with the version that the work was made with.
801+802+ c) Accompany the work with a written offer, valid for at
803+ least three years, to give the same user the materials
804+ specified in Subsection 6a, above, for a charge no more
805+ than the cost of performing this distribution.
806+807+ d) If distribution of the work is made by offering access to copy
808+ from a designated place, offer equivalent access to copy the above
809+ specified materials from the same place.
810+811+ e) Verify that the user has already received a copy of these
812+ materials or that you have already sent this user a copy.
813+814+ For an executable, the required form of the "work that uses the
815+Library" must include any data and utility programs needed for
816+reproducing the executable from it. However, as a special exception,
817+the materials to be distributed need not include anything that is
818+normally distributed (in either source or binary form) with the major
819+components (compiler, kernel, and so on) of the operating system on
820+which the executable runs, unless that component itself accompanies
821+the executable.
822+823+ It may happen that this requirement contradicts the license
824+restrictions of other proprietary libraries that do not normally
825+accompany the operating system. Such a contradiction means you cannot
826+use both them and the Library together in an executable that you
827+distribute.
828+829+ 7. You may place library facilities that are a work based on the
830+Library side-by-side in a single library together with other library
831+facilities not covered by this License, and distribute such a combined
832+library, provided that the separate distribution of the work based on
833+the Library and of the other library facilities is otherwise
834+permitted, and provided that you do these two things:
835+836+ a) Accompany the combined library with a copy of the same work
837+ based on the Library, uncombined with any other library
838+ facilities. This must be distributed under the terms of the
839+ Sections above.
840+841+ b) Give prominent notice with the combined library of the fact
842+ that part of it is a work based on the Library, and explaining
843+ where to find the accompanying uncombined form of the same work.
844+845+ 8. You may not copy, modify, sublicense, link with, or distribute
846+the Library except as expressly provided under this License. Any
847+attempt otherwise to copy, modify, sublicense, link with, or
848+distribute the Library is void, and will automatically terminate your
849+rights under this License. However, parties who have received copies,
850+or rights, from you under this License will not have their licenses
851+terminated so long as such parties remain in full compliance.
852+853+ 9. You are not required to accept this License, since you have not
854+signed it. However, nothing else grants you permission to modify or
855+distribute the Library or its derivative works. These actions are
856+prohibited by law if you do not accept this License. Therefore, by
857+modifying or distributing the Library (or any work based on the
858+Library), you indicate your acceptance of this License to do so, and
859+all its terms and conditions for copying, distributing or modifying
860+the Library or works based on it.
861+862+ 10. Each time you redistribute the Library (or any work based on the
863+Library), the recipient automatically receives a license from the
864+original licensor to copy, distribute, link with or modify the Library
865+subject to these terms and conditions. You may not impose any further
866+restrictions on the recipients' exercise of the rights granted herein.
867+You are not responsible for enforcing compliance by third parties with
868+this License.
869+870+ 11. If, as a consequence of a court judgment or allegation of patent
871+infringement or for any other reason (not limited to patent issues),
872+conditions are imposed on you (whether by court order, agreement or
873+otherwise) that contradict the conditions of this License, they do not
874+excuse you from the conditions of this License. If you cannot
875+distribute so as to satisfy simultaneously your obligations under this
876+License and any other pertinent obligations, then as a consequence you
877+may not distribute the Library at all. For example, if a patent
878+license would not permit royalty-free redistribution of the Library by
879+all those who receive copies directly or indirectly through you, then
880+the only way you could satisfy both it and this License would be to
881+refrain entirely from distribution of the Library.
882+883+If any portion of this section is held invalid or unenforceable under any
884+particular circumstance, the balance of the section is intended to apply,
885+and the section as a whole is intended to apply in other circumstances.
886+887+It is not the purpose of this section to induce you to infringe any
888+patents or other property right claims or to contest validity of any
889+such claims; this section has the sole purpose of protecting the
890+integrity of the free software distribution system which is
891+implemented by public license practices. Many people have made
892+generous contributions to the wide range of software distributed
893+through that system in reliance on consistent application of that
894+system; it is up to the author/donor to decide if he or she is willing
895+to distribute software through any other system and a licensee cannot
896+impose that choice.
897+898+This section is intended to make thoroughly clear what is believed to
899+be a consequence of the rest of this License.
900+901+ 12. If the distribution and/or use of the Library is restricted in
902+certain countries either by patents or by copyrighted interfaces, the
903+original copyright holder who places the Library under this License may add
904+an explicit geographical distribution limitation excluding those countries,
905+so that distribution is permitted only in or among countries not thus
906+excluded. In such case, this License incorporates the limitation as if
907+written in the body of this License.
908+909+ 13. The Free Software Foundation may publish revised and/or new
910+versions of the Lesser General Public License from time to time.
911+Such new versions will be similar in spirit to the present version,
912+but may differ in detail to address new problems or concerns.
913+914+Each version is given a distinguishing version number. If the Library
915+specifies a version number of this License which applies to it and
916+"any later version", you have the option of following the terms and
917+conditions either of that version or of any later version published by
918+the Free Software Foundation. If the Library does not specify a
919+license version number, you may choose any version ever published by
920+the Free Software Foundation.
921+922+ 14. If you wish to incorporate parts of the Library into other free
923+programs whose distribution conditions are incompatible with these,
924+write to the author to ask for permission. For software which is
925+copyrighted by the Free Software Foundation, write to the Free
926+Software Foundation; we sometimes make exceptions for this. Our
927+decision will be guided by the two goals of preserving the free status
928+of all derivatives of our free software and of promoting the sharing
929+and reuse of software generally.
930+931+ NO WARRANTY
932+933+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
934+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
935+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
936+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
937+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
938+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
939+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
940+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
941+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
942+943+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
944+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
945+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
946+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
947+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
948+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
949+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
950+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
951+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
952+DAMAGES.
953+954+ END OF TERMS AND CONDITIONS
955+956+ How to Apply These Terms to Your New Libraries
957+958+ If you develop a new library, and you want it to be of the greatest
959+possible use to the public, we recommend making it free software that
960+everyone can redistribute and change. You can do so by permitting
961+redistribution under these terms (or, alternatively, under the terms of the
962+ordinary General Public License).
963+964+ To apply these terms, attach the following notices to the library. It is
965+safest to attach them to the start of each source file to most effectively
966+convey the exclusion of warranty; and each file should have at least the
967+"copyright" line and a pointer to where the full notice is found.
968+969+ <one line to give the library's name and a brief idea of what it does.>
970+ Copyright (C) <year> <name of author>
971+972+ This library is free software; you can redistribute it and/or
973+ modify it under the terms of the GNU Lesser General Public
974+ License as published by the Free Software Foundation; either
975+ version 2.1 of the License, or (at your option) any later version.
976+977+ This library is distributed in the hope that it will be useful,
978+ but WITHOUT ANY WARRANTY; without even the implied warranty of
979+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
980+ Lesser General Public License for more details.
981+982+ You should have received a copy of the GNU Lesser General Public
983+ License along with this library; if not, write to the Free Software
984+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
985+986+Also add information on how to contact you by electronic and paper mail.
987+988+You should also get your employer (if you work as a programmer) or your
989+school, if any, to sign a "copyright disclaimer" for the library, if
990+necessary. Here is a sample; alter the names:
991+992+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
993+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
994+995+ <signature of Ty Coon>, 1 April 1990
996+ Ty Coon, President of Vice
997+998+That's all there is to it!
999+1000+----------------------------------------------------------------------
1001+1002+The bundled SHA1 collision detection code is licensed under the MIT license:
1003+1004+MIT License
1005+1006+Copyright (c) 2017:
1007+ Marc Stevens
1008+ Cryptology Group
1009+ Centrum Wiskunde & Informatica
1010+ P.O. Box 94079, 1090 GB Amsterdam, Netherlands
1011+ marc@marc-stevens.nl
1012+1013+ Dan Shumow
1014+ Microsoft Research
1015+ danshu@microsoft.com
1016+1017+Permission is hereby granted, free of charge, to any person obtaining a copy
1018+of this software and associated documentation files (the "Software"), to deal
1019+in the Software without restriction, including without limitation the rights
1020+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1021+copies of the Software, and to permit persons to whom the Software is
1022+furnished to do so, subject to the following conditions:
1023+1024+The above copyright notice and this permission notice shall be included in all
1025+copies or substantial portions of the Software.
1026+1027+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1028+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1029+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1030+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1031+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1032+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1033+SOFTWARE.
1034+1035+----------------------------------------------------------------------
1036+1037+The bundled wildmatch code is licensed under the BSD license:
1038+1039+Copyright Rich Salz.
1040+All rights reserved.
1041+1042+Redistribution and use in any form are permitted provided that the
1043+following restrictions are are met:
1044+1045+1. Source distributions must retain this entire copyright notice
1046+ and comment.
1047+2. Binary distributions must include the acknowledgement ``This
1048+ product includes software developed by Rich Salz'' in the
1049+ documentation or other materials provided with the
1050+ distribution. This must not be represented as an endorsement
1051+ or promotion without specific prior written permission.
1052+3. The origin of this software must not be misrepresented, either
1053+ by explicit claim or by omission. Credits must appear in the
1054+ source and documentation.
1055+4. Altered versions must be plainly marked as such in the source
1056+ and documentation and must not be misrepresented as being the
1057+ original software.
1058+1059+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
1060+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
1061+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1062+1063+----------------------------------------------------------------------
1064+1065+Portions of the OpenSSL headers are included under the OpenSSL license:
1066+1067+Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
1068+All rights reserved.
1069+1070+This package is an SSL implementation written
1071+by Eric Young (eay@cryptsoft.com).
1072+The implementation was written so as to conform with Netscapes SSL.
1073+1074+This library is free for commercial and non-commercial use as long as
1075+the following conditions are aheared to. The following conditions
1076+apply to all code found in this distribution, be it the RC4, RSA,
1077+lhash, DES, etc., code; not just the SSL code. The SSL documentation
1078+included with this distribution is covered by the same copyright terms
1079+except that the holder is Tim Hudson (tjh@cryptsoft.com).
1080+1081+Copyright remains Eric Young's, and as such any Copyright notices in
1082+the code are not to be removed.
1083+If this package is used in a product, Eric Young should be given attribution
1084+as the author of the parts of the library used.
1085+This can be in the form of a textual message at program startup or
1086+in documentation (online or textual) provided with the package.
1087+1088+Redistribution and use in source and binary forms, with or without
1089+modification, are permitted provided that the following conditions
1090+are met:
1091+1. Redistributions of source code must retain the copyright
1092+ notice, this list of conditions and the following disclaimer.
1093+2. Redistributions in binary form must reproduce the above copyright
1094+ notice, this list of conditions and the following disclaimer in the
1095+ documentation and/or other materials provided with the distribution.
1096+3. All advertising materials mentioning features or use of this software
1097+ must display the following acknowledgement:
1098+ "This product includes cryptographic software written by
1099+ Eric Young (eay@cryptsoft.com)"
1100+ The word 'cryptographic' can be left out if the rouines from the library
1101+ being used are not cryptographic related :-).
1102+4. If you include any Windows specific code (or a derivative thereof) from
1103+ the apps directory (application code) you must include an acknowledgement:
1104+ "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
1105+1106+THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
1107+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1108+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1109+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1110+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1111+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1112+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1113+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1114+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1115+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1116+SUCH DAMAGE.
1117+1118+The licence and distribution terms for any publically available version or
1119+derivative of this code cannot be changed. i.e. this code cannot simply be
1120+copied and put under another distribution licence
1121+[including the GNU Public Licence.]
1122+1123+====================================================================
1124+Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved.
1125+1126+Redistribution and use in source and binary forms, with or without
1127+modification, are permitted provided that the following conditions
1128+are met:
1129+1130+1. Redistributions of source code must retain the above copyright
1131+ notice, this list of conditions and the following disclaimer.
1132+1133+2. Redistributions in binary form must reproduce the above copyright
1134+ notice, this list of conditions and the following disclaimer in
1135+ the documentation and/or other materials provided with the
1136+ distribution.
1137+1138+3. All advertising materials mentioning features or use of this
1139+ software must display the following acknowledgment:
1140+ "This product includes software developed by the OpenSSL Project
1141+ for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
1142+1143+4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
1144+ endorse or promote products derived from this software without
1145+ prior written permission. For written permission, please contact
1146+ openssl-core@openssl.org.
1147+1148+5. Products derived from this software may not be called "OpenSSL"
1149+ nor may "OpenSSL" appear in their names without prior written
1150+ permission of the OpenSSL Project.
1151+1152+6. Redistributions of any form whatsoever must retain the following
1153+ acknowledgment:
1154+ "This product includes software developed by the OpenSSL Project
1155+ for use in the OpenSSL Toolkit (http://www.openssl.org/)"
1156+1157+THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
1158+EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1159+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1160+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
1161+ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1162+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1163+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1164+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1165+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1166+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1167+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
1168+OF THE POSSIBILITY OF SUCH DAMAGE.
1169+```
1170+1171+### libssh2/libssh2
1172+1173+```
1174+/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
1175+ * Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
1176+ * Copyright (c) 2006-2007 The Written Word, Inc.
1177+ * Copyright (c) 2007 Eli Fant <elifantu@mail.ru>
1178+ * Copyright (c) 2009-2021 Daniel Stenberg
1179+ * Copyright (C) 2008, 2009 Simon Josefsson
1180+ * Copyright (c) 2000 Markus Friedl
1181+ * Copyright (c) 2015 Microsoft Corp.
1182+ * All rights reserved.
1183+ *
1184+ * Redistribution and use in source and binary forms,
1185+ * with or without modification, are permitted provided
1186+ * that the following conditions are met:
1187+ *
1188+ * Redistributions of source code must retain the above
1189+ * copyright notice, this list of conditions and the
1190+ * following disclaimer.
1191+ *
1192+ * Redistributions in binary form must reproduce the above
1193+ * copyright notice, this list of conditions and the following
1194+ * disclaimer in the documentation and/or other materials
1195+ * provided with the distribution.
1196+ *
1197+ * Neither the name of the copyright holder nor the names
1198+ * of any other contributors may be used to endorse or
1199+ * promote products derived from this software without
1200+ * specific prior written permission.
1201+ *
1202+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
1203+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
1204+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1205+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1206+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
1207+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1208+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
1209+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1210+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1211+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1212+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
1213+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
1214+ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
1215+ * OF SUCH DAMAGE.
1216+ */
1217+```
1218+1219+### OpenSSL
1220+1221+```
1222+1223+ LICENSE ISSUES
1224+ ==============
1225+1226+ The OpenSSL toolkit stays under a double license, i.e. both the conditions of
1227+ the OpenSSL License and the original SSLeay license apply to the toolkit.
1228+ See below for the actual license texts.
1229+1230+ OpenSSL License
1231+ ---------------
1232+1233+/* ====================================================================
1234+ * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
1235+ *
1236+ * Redistribution and use in source and binary forms, with or without
1237+ * modification, are permitted provided that the following conditions
1238+ * are met:
1239+ *
1240+ * 1. Redistributions of source code must retain the above copyright
1241+ * notice, this list of conditions and the following disclaimer.
1242+ *
1243+ * 2. Redistributions in binary form must reproduce the above copyright
1244+ * notice, this list of conditions and the following disclaimer in
1245+ * the documentation and/or other materials provided with the
1246+ * distribution.
1247+ *
1248+ * 3. All advertising materials mentioning features or use of this
1249+ * software must display the following acknowledgment:
1250+ * "This product includes software developed by the OpenSSL Project
1251+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
1252+ *
1253+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
1254+ * endorse or promote products derived from this software without
1255+ * prior written permission. For written permission, please contact
1256+ * openssl-core@openssl.org.
1257+ *
1258+ * 5. Products derived from this software may not be called "OpenSSL"
1259+ * nor may "OpenSSL" appear in their names without prior written
1260+ * permission of the OpenSSL Project.
1261+ *
1262+ * 6. Redistributions of any form whatsoever must retain the following
1263+ * acknowledgment:
1264+ * "This product includes software developed by the OpenSSL Project
1265+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
1266+ *
1267+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
1268+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1269+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1270+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
1271+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1272+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1273+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1274+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1275+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1276+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1277+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
1278+ * OF THE POSSIBILITY OF SUCH DAMAGE.
1279+ * ====================================================================
1280+ *
1281+ * This product includes cryptographic software written by Eric Young
1282+ * (eay@cryptsoft.com). This product includes software written by Tim
1283+ * Hudson (tjh@cryptsoft.com).
1284+ *
1285+ */
1286+1287+ Original SSLeay License
1288+ -----------------------
1289+1290+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
1291+ * All rights reserved.
1292+ *
1293+ * This package is an SSL implementation written
1294+ * by Eric Young (eay@cryptsoft.com).
1295+ * The implementation was written so as to conform with Netscapes SSL.
1296+ *
1297+ * This library is free for commercial and non-commercial use as long as
1298+ * the following conditions are aheared to. The following conditions
1299+ * apply to all code found in this distribution, be it the RC4, RSA,
1300+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
1301+ * included with this distribution is covered by the same copyright terms
1302+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
1303+ *
1304+ * Copyright remains Eric Young's, and as such any Copyright notices in
1305+ * the code are not to be removed.
1306+ * If this package is used in a product, Eric Young should be given attribution
1307+ * as the author of the parts of the library used.
1308+ * This can be in the form of a textual message at program startup or
1309+ * in documentation (online or textual) provided with the package.
1310+ *
1311+ * Redistribution and use in source and binary forms, with or without
1312+ * modification, are permitted provided that the following conditions
1313+ * are met:
1314+ * 1. Redistributions of source code must retain the copyright
1315+ * notice, this list of conditions and the following disclaimer.
1316+ * 2. Redistributions in binary form must reproduce the above copyright
1317+ * notice, this list of conditions and the following disclaimer in the
1318+ * documentation and/or other materials provided with the distribution.
1319+ * 3. All advertising materials mentioning features or use of this software
1320+ * must display the following acknowledgement:
1321+ * "This product includes cryptographic software written by
1322+ * Eric Young (eay@cryptsoft.com)"
1323+ * The word 'cryptographic' can be left out if the rouines from the library
1324+ * being used are not cryptographic related :-).
1325+ * 4. If you include any Windows specific code (or a derivative thereof) from
1326+ * the apps directory (application code) you must include an acknowledgement:
1327+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
1328+ *
1329+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
1330+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1331+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1332+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1333+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1334+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1335+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1336+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1337+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1338+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1339+ * SUCH DAMAGE.
1340+ *
1341+ * The licence and distribution terms for any publically available version or
1342+ * derivative of this code cannot be changed. i.e. this code cannot simply be
1343+ * copied and put under another distribution licence
1344+ * [including the GNU Public Licence.]
1345+ */
1346+```
···1+extends Node3D
2+3+# Used for checking if the mouse is inside the Area3D.
4+var is_mouse_inside = false
5+# The last processed input touch/mouse event. To calculate relative movement.
6+var last_event_pos2D = null
7+# The time of the last event in seconds since engine start.
8+var last_event_time: float = -1.0
9+10+@onready var node_viewport = $SubViewport
11+@onready var node_quad = $Quad
12+@onready var node_area = $Quad/Area3D
13+14+func _ready():
15+ node_area.mouse_entered.connect(_mouse_entered_area)
16+ node_area.mouse_exited.connect(_mouse_exited_area)
17+ node_area.input_event.connect(_mouse_input_event)
18+19+func _mouse_entered_area():
20+ is_mouse_inside = true
21+22+func _mouse_exited_area():
23+ is_mouse_inside = false
24+25+func _unhandled_input(event):
26+ # Check if the event is a non-mouse/non-touch event
27+ for mouse_event in [InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch]:
28+ if is_instance_of(event, mouse_event):
29+ # If the event is a mouse/touch event, then we can ignore it here, because it will be
30+ # handled via Physics Picking.
31+ return
32+ node_viewport.push_input(event)
33+34+func _mouse_input_event(_camera: Camera3D, event: InputEvent, event_position: Vector3, _normal: Vector3, _shape_idx: int):
35+ # Get mesh size to detect edges and make conversions. This code only support PlaneMesh and QuadMesh.
36+ var quad_mesh_size = node_quad.mesh.size
37+38+ # Event position in Area3D in world coordinate space.
39+ var event_pos3D = event_position
40+41+ # Current time in seconds since engine start.
42+ var now: float = Time.get_ticks_msec() / 1000.0
43+44+ # Convert position to a coordinate space relative to the Area3D node.
45+ # NOTE: affine_inverse accounts for the Area3D node's scale, rotation, and position in the scene!
46+ event_pos3D = node_quad.global_transform.affine_inverse() * event_pos3D
47+48+ # TODO: Adapt to bilboard mode or avoid completely.
49+50+ var event_pos2D: Vector2 = Vector2()
51+52+ if is_mouse_inside:
53+ # Convert the relative event position from 3D to 2D.
54+ event_pos2D = Vector2(event_pos3D.x, -event_pos3D.y)
55+56+ # Right now the event position's range is the following: (-quad_size/2) -> (quad_size/2)
57+ # We need to convert it into the following range: -0.5 -> 0.5
58+ event_pos2D.x = event_pos2D.x / quad_mesh_size.x
59+ event_pos2D.y = event_pos2D.y / quad_mesh_size.y
60+ # Then we need to convert it into the following range: 0 -> 1
61+ event_pos2D.x += 0.5
62+ event_pos2D.y += 0.5
63+64+ # Finally, we convert the position to the following range: 0 -> viewport.size
65+ event_pos2D.x *= node_viewport.size.x
66+ event_pos2D.y *= node_viewport.size.y
67+ # We need to do these conversions so the event's position is in the viewport's coordinate system.
68+69+ elif last_event_pos2D != null:
70+ # Fall back to the last known event position.
71+ event_pos2D = last_event_pos2D
72+73+ # Set the event's position and global position.
74+ event.position = event_pos2D
75+ if event is InputEventMouse:
76+ event.global_position = event_pos2D
77+78+ # Calculate the relative event distance.
79+ if event is InputEventMouseMotion or event is InputEventScreenDrag:
80+ # If there is not a stored previous position, then we'll assume there is no relative motion.
81+ if last_event_pos2D == null:
82+ event.relative = Vector2(0, 0)
83+ # If there is a stored previous position, then we'll calculate the relative position by subtracting
84+ # the previous position from the new position. This will give us the distance the event traveled from prev_pos.
85+ else:
86+ event.relative = event_pos2D - last_event_pos2D
87+ event.velocity = event.relative / (now - last_event_time)
88+89+ # Update last_event_pos2D with the position we just calculated.
90+ last_event_pos2D = event_pos2D
91+92+ # Update last_event_time to current time.
93+ last_event_time = now
94+95+ # Finally, send the processed input event to the viewport.
96+ node_viewport.push_input(event)