···11+MIT License
22+33+Copyright (c) 2016-2023 The Godot Engine community
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+1346
addons/godot-git-plugin/THIRDPARTY.md
···11+# Third-Party Notices
22+33+The Godot Git Plugin source code uses the following third-party source code:
44+55+1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c
66+2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d
77+3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8
88+4. openssl - OpenSSL License - https://github.com/openssl/openssl/tree/26baecb28ce461696966dac9ac889629db0b3b96
99+1010+## License Texts
1111+1212+### godotengine/godot-cpp
1313+1414+```
1515+# MIT License
1616+1717+Copyright (c) 2017-2022 Godot Engine contributors.
1818+1919+Permission is hereby granted, free of charge, to any person obtaining a copy
2020+of this software and associated documentation files (the "Software"), to deal
2121+in the Software without restriction, including without limitation the rights
2222+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2323+copies of the Software, and to permit persons to whom the Software is
2424+furnished to do so, subject to the following conditions:
2525+2626+The above copyright notice and this permission notice shall be included in all
2727+copies or substantial portions of the Software.
2828+2929+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3030+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3131+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3232+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3333+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3434+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3535+SOFTWARE.
3636+```
3737+3838+### libgit2/libgit2
3939+4040+```
4141+ libgit2 is Copyright (C) the libgit2 contributors,
4242+ unless otherwise stated. See the AUTHORS file for details.
4343+4444+ Note that the only valid version of the GPL as far as this project
4545+ is concerned is _this_ particular version of the license (ie v2, not
4646+ v2.2 or v3.x or whatever), unless explicitly otherwise stated.
4747+4848+----------------------------------------------------------------------
4949+5050+ LINKING EXCEPTION
5151+5252+ In addition to the permissions in the GNU General Public License,
5353+ the authors give you unlimited permission to link the compiled
5454+ version of this library into combinations with other programs,
5555+ and to distribute those combinations without any restriction
5656+ coming from the use of this file. (The General Public License
5757+ restrictions do apply in other respects; for example, they cover
5858+ modification of the file, and distribution when not linked into
5959+ a combined executable.)
6060+6161+----------------------------------------------------------------------
6262+6363+ GNU GENERAL PUBLIC LICENSE
6464+ Version 2, June 1991
6565+6666+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6767+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6868+ Everyone is permitted to copy and distribute verbatim copies
6969+ of this license document, but changing it is not allowed.
7070+7171+ Preamble
7272+7373+ The licenses for most software are designed to take away your
7474+freedom to share and change it. By contrast, the GNU General Public
7575+License is intended to guarantee your freedom to share and change free
7676+software--to make sure the software is free for all its users. This
7777+General Public License applies to most of the Free Software
7878+Foundation's software and to any other program whose authors commit to
7979+using it. (Some other Free Software Foundation software is covered by
8080+the GNU Library General Public License instead.) You can apply it to
8181+your programs, too.
8282+8383+ When we speak of free software, we are referring to freedom, not
8484+price. Our General Public Licenses are designed to make sure that you
8585+have the freedom to distribute copies of free software (and charge for
8686+this service if you wish), that you receive source code or can get it
8787+if you want it, that you can change the software or use pieces of it
8888+in new free programs; and that you know you can do these things.
8989+9090+ To protect your rights, we need to make restrictions that forbid
9191+anyone to deny you these rights or to ask you to surrender the rights.
9292+These restrictions translate to certain responsibilities for you if you
9393+distribute copies of the software, or if you modify it.
9494+9595+ For example, if you distribute copies of such a program, whether
9696+gratis or for a fee, you must give the recipients all the rights that
9797+you have. You must make sure that they, too, receive or can get the
9898+source code. And you must show them these terms so they know their
9999+rights.
100100+101101+ We protect your rights with two steps: (1) copyright the software, and
102102+(2) offer you this license which gives you legal permission to copy,
103103+distribute and/or modify the software.
104104+105105+ Also, for each author's protection and ours, we want to make certain
106106+that everyone understands that there is no warranty for this free
107107+software. If the software is modified by someone else and passed on, we
108108+want its recipients to know that what they have is not the original, so
109109+that any problems introduced by others will not reflect on the original
110110+authors' reputations.
111111+112112+ Finally, any free program is threatened constantly by software
113113+patents. We wish to avoid the danger that redistributors of a free
114114+program will individually obtain patent licenses, in effect making the
115115+program proprietary. To prevent this, we have made it clear that any
116116+patent must be licensed for everyone's free use or not licensed at all.
117117+118118+ The precise terms and conditions for copying, distribution and
119119+modification follow.
120120+121121+ GNU GENERAL PUBLIC LICENSE
122122+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
123123+124124+ 0. This License applies to any program or other work which contains
125125+a notice placed by the copyright holder saying it may be distributed
126126+under the terms of this General Public License. The "Program", below,
127127+refers to any such program or work, and a "work based on the Program"
128128+means either the Program or any derivative work under copyright law:
129129+that is to say, a work containing the Program or a portion of it,
130130+either verbatim or with modifications and/or translated into another
131131+language. (Hereinafter, translation is included without limitation in
132132+the term "modification".) Each licensee is addressed as "you".
133133+134134+Activities other than copying, distribution and modification are not
135135+covered by this License; they are outside its scope. The act of
136136+running the Program is not restricted, and the output from the Program
137137+is covered only if its contents constitute a work based on the
138138+Program (independent of having been made by running the Program).
139139+Whether that is true depends on what the Program does.
140140+141141+ 1. You may copy and distribute verbatim copies of the Program's
142142+source code as you receive it, in any medium, provided that you
143143+conspicuously and appropriately publish on each copy an appropriate
144144+copyright notice and disclaimer of warranty; keep intact all the
145145+notices that refer to this License and to the absence of any warranty;
146146+and give any other recipients of the Program a copy of this License
147147+along with the Program.
148148+149149+You may charge a fee for the physical act of transferring a copy, and
150150+you may at your option offer warranty protection in exchange for a fee.
151151+152152+ 2. You may modify your copy or copies of the Program or any portion
153153+of it, thus forming a work based on the Program, and copy and
154154+distribute such modifications or work under the terms of Section 1
155155+above, provided that you also meet all of these conditions:
156156+157157+ a) You must cause the modified files to carry prominent notices
158158+ stating that you changed the files and the date of any change.
159159+160160+ b) You must cause any work that you distribute or publish, that in
161161+ whole or in part contains or is derived from the Program or any
162162+ part thereof, to be licensed as a whole at no charge to all third
163163+ parties under the terms of this License.
164164+165165+ c) If the modified program normally reads commands interactively
166166+ when run, you must cause it, when started running for such
167167+ interactive use in the most ordinary way, to print or display an
168168+ announcement including an appropriate copyright notice and a
169169+ notice that there is no warranty (or else, saying that you provide
170170+ a warranty) and that users may redistribute the program under
171171+ these conditions, and telling the user how to view a copy of this
172172+ License. (Exception: if the Program itself is interactive but
173173+ does not normally print such an announcement, your work based on
174174+ the Program is not required to print an announcement.)
175175+176176+These requirements apply to the modified work as a whole. If
177177+identifiable sections of that work are not derived from the Program,
178178+and can be reasonably considered independent and separate works in
179179+themselves, then this License, and its terms, do not apply to those
180180+sections when you distribute them as separate works. But when you
181181+distribute the same sections as part of a whole which is a work based
182182+on the Program, the distribution of the whole must be on the terms of
183183+this License, whose permissions for other licensees extend to the
184184+entire whole, and thus to each and every part regardless of who wrote it.
185185+186186+Thus, it is not the intent of this section to claim rights or contest
187187+your rights to work written entirely by you; rather, the intent is to
188188+exercise the right to control the distribution of derivative or
189189+collective works based on the Program.
190190+191191+In addition, mere aggregation of another work not based on the Program
192192+with the Program (or with a work based on the Program) on a volume of
193193+a storage or distribution medium does not bring the other work under
194194+the scope of this License.
195195+196196+ 3. You may copy and distribute the Program (or a work based on it,
197197+under Section 2) in object code or executable form under the terms of
198198+Sections 1 and 2 above provided that you also do one of the following:
199199+200200+ a) Accompany it with the complete corresponding machine-readable
201201+ source code, which must be distributed under the terms of Sections
202202+ 1 and 2 above on a medium customarily used for software interchange; or,
203203+204204+ b) Accompany it with a written offer, valid for at least three
205205+ years, to give any third party, for a charge no more than your
206206+ cost of physically performing source distribution, a complete
207207+ machine-readable copy of the corresponding source code, to be
208208+ distributed under the terms of Sections 1 and 2 above on a medium
209209+ customarily used for software interchange; or,
210210+211211+ c) Accompany it with the information you received as to the offer
212212+ to distribute corresponding source code. (This alternative is
213213+ allowed only for noncommercial distribution and only if you
214214+ received the program in object code or executable form with such
215215+ an offer, in accord with Subsection b above.)
216216+217217+The source code for a work means the preferred form of the work for
218218+making modifications to it. For an executable work, complete source
219219+code means all the source code for all modules it contains, plus any
220220+associated interface definition files, plus the scripts used to
221221+control compilation and installation of the executable. However, as a
222222+special exception, the source code distributed need not include
223223+anything that is normally distributed (in either source or binary
224224+form) with the major components (compiler, kernel, and so on) of the
225225+operating system on which the executable runs, unless that component
226226+itself accompanies the executable.
227227+228228+If distribution of executable or object code is made by offering
229229+access to copy from a designated place, then offering equivalent
230230+access to copy the source code from the same place counts as
231231+distribution of the source code, even though third parties are not
232232+compelled to copy the source along with the object code.
233233+234234+ 4. You may not copy, modify, sublicense, or distribute the Program
235235+except as expressly provided under this License. Any attempt
236236+otherwise to copy, modify, sublicense or distribute the Program is
237237+void, and will automatically terminate your rights under this License.
238238+However, parties who have received copies, or rights, from you under
239239+this License will not have their licenses terminated so long as such
240240+parties remain in full compliance.
241241+242242+ 5. You are not required to accept this License, since you have not
243243+signed it. However, nothing else grants you permission to modify or
244244+distribute the Program or its derivative works. These actions are
245245+prohibited by law if you do not accept this License. Therefore, by
246246+modifying or distributing the Program (or any work based on the
247247+Program), you indicate your acceptance of this License to do so, and
248248+all its terms and conditions for copying, distributing or modifying
249249+the Program or works based on it.
250250+251251+ 6. Each time you redistribute the Program (or any work based on the
252252+Program), the recipient automatically receives a license from the
253253+original licensor to copy, distribute or modify the Program subject to
254254+these terms and conditions. You may not impose any further
255255+restrictions on the recipients' exercise of the rights granted herein.
256256+You are not responsible for enforcing compliance by third parties to
257257+this License.
258258+259259+ 7. If, as a consequence of a court judgment or allegation of patent
260260+infringement or for any other reason (not limited to patent issues),
261261+conditions are imposed on you (whether by court order, agreement or
262262+otherwise) that contradict the conditions of this License, they do not
263263+excuse you from the conditions of this License. If you cannot
264264+distribute so as to satisfy simultaneously your obligations under this
265265+License and any other pertinent obligations, then as a consequence you
266266+may not distribute the Program at all. For example, if a patent
267267+license would not permit royalty-free redistribution of the Program by
268268+all those who receive copies directly or indirectly through you, then
269269+the only way you could satisfy both it and this License would be to
270270+refrain entirely from distribution of the Program.
271271+272272+If any portion of this section is held invalid or unenforceable under
273273+any particular circumstance, the balance of the section is intended to
274274+apply and the section as a whole is intended to apply in other
275275+circumstances.
276276+277277+It is not the purpose of this section to induce you to infringe any
278278+patents or other property right claims or to contest validity of any
279279+such claims; this section has the sole purpose of protecting the
280280+integrity of the free software distribution system, which is
281281+implemented by public license practices. Many people have made
282282+generous contributions to the wide range of software distributed
283283+through that system in reliance on consistent application of that
284284+system; it is up to the author/donor to decide if he or she is willing
285285+to distribute software through any other system and a licensee cannot
286286+impose that choice.
287287+288288+This section is intended to make thoroughly clear what is believed to
289289+be a consequence of the rest of this License.
290290+291291+ 8. If the distribution and/or use of the Program is restricted in
292292+certain countries either by patents or by copyrighted interfaces, the
293293+original copyright holder who places the Program under this License
294294+may add an explicit geographical distribution limitation excluding
295295+those countries, so that distribution is permitted only in or among
296296+countries not thus excluded. In such case, this License incorporates
297297+the limitation as if written in the body of this License.
298298+299299+ 9. The Free Software Foundation may publish revised and/or new versions
300300+of the General Public License from time to time. Such new versions will
301301+be similar in spirit to the present version, but may differ in detail to
302302+address new problems or concerns.
303303+304304+Each version is given a distinguishing version number. If the Program
305305+specifies a version number of this License which applies to it and "any
306306+later version", you have the option of following the terms and conditions
307307+either of that version or of any later version published by the Free
308308+Software Foundation. If the Program does not specify a version number of
309309+this License, you may choose any version ever published by the Free Software
310310+Foundation.
311311+312312+ 10. If you wish to incorporate parts of the Program into other free
313313+programs whose distribution conditions are different, write to the author
314314+to ask for permission. For software which is copyrighted by the Free
315315+Software Foundation, write to the Free Software Foundation; we sometimes
316316+make exceptions for this. Our decision will be guided by the two goals
317317+of preserving the free status of all derivatives of our free software and
318318+of promoting the sharing and reuse of software generally.
319319+320320+ NO WARRANTY
321321+322322+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
323323+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
324324+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
325325+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
326326+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
327327+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
328328+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
329329+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
330330+REPAIR OR CORRECTION.
331331+332332+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
333333+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
334334+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
335335+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
336336+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
337337+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
338338+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
339339+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
340340+POSSIBILITY OF SUCH DAMAGES.
341341+342342+ END OF TERMS AND CONDITIONS
343343+344344+ How to Apply These Terms to Your New Programs
345345+346346+ If you develop a new program, and you want it to be of the greatest
347347+possible use to the public, the best way to achieve this is to make it
348348+free software which everyone can redistribute and change under these terms.
349349+350350+ To do so, attach the following notices to the program. It is safest
351351+to attach them to the start of each source file to most effectively
352352+convey the exclusion of warranty; and each file should have at least
353353+the "copyright" line and a pointer to where the full notice is found.
354354+355355+ <one line to give the program's name and a brief idea of what it does.>
356356+ Copyright (C) <year> <name of author>
357357+358358+ This program is free software; you can redistribute it and/or modify
359359+ it under the terms of the GNU General Public License as published by
360360+ the Free Software Foundation; either version 2 of the License, or
361361+ (at your option) any later version.
362362+363363+ This program is distributed in the hope that it will be useful,
364364+ but WITHOUT ANY WARRANTY; without even the implied warranty of
365365+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
366366+ GNU General Public License for more details.
367367+368368+ You should have received a copy of the GNU General Public License
369369+ along with this program; if not, write to the Free Software
370370+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
371371+372372+373373+Also add information on how to contact you by electronic and paper mail.
374374+375375+If the program is interactive, make it output a short notice like this
376376+when it starts in an interactive mode:
377377+378378+ Gnomovision version 69, Copyright (C) year name of author
379379+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
380380+ This is free software, and you are welcome to redistribute it
381381+ under certain conditions; type `show c' for details.
382382+383383+The hypothetical commands `show w' and `show c' should show the appropriate
384384+parts of the General Public License. Of course, the commands you use may
385385+be called something other than `show w' and `show c'; they could even be
386386+mouse-clicks or menu items--whatever suits your program.
387387+388388+You should also get your employer (if you work as a programmer) or your
389389+school, if any, to sign a "copyright disclaimer" for the program, if
390390+necessary. Here is a sample; alter the names:
391391+392392+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
393393+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
394394+395395+ <signature of Ty Coon>, 1 April 1989
396396+ Ty Coon, President of Vice
397397+398398+This General Public License does not permit incorporating your program into
399399+proprietary programs. If your program is a subroutine library, you may
400400+consider it more useful to permit linking proprietary applications with the
401401+library. If this is what you want to do, use the GNU Library General
402402+Public License instead of this License.
403403+404404+----------------------------------------------------------------------
405405+406406+The bundled ZLib code is licensed under the ZLib license:
407407+408408+Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
409409+410410+ This software is provided 'as-is', without any express or implied
411411+ warranty. In no event will the authors be held liable for any damages
412412+ arising from the use of this software.
413413+414414+ Permission is granted to anyone to use this software for any purpose,
415415+ including commercial applications, and to alter it and redistribute it
416416+ freely, subject to the following restrictions:
417417+418418+ 1. The origin of this software must not be misrepresented; you must not
419419+ claim that you wrote the original software. If you use this software
420420+ in a product, an acknowledgment in the product documentation would be
421421+ appreciated but is not required.
422422+ 2. Altered source versions must be plainly marked as such, and must not be
423423+ misrepresented as being the original software.
424424+ 3. This notice may not be removed or altered from any source distribution.
425425+426426+ Jean-loup Gailly Mark Adler
427427+ jloup@gzip.org madler@alumni.caltech.edu
428428+429429+----------------------------------------------------------------------
430430+431431+The Clar framework is licensed under the ISC license:
432432+433433+Copyright (c) 2011-2015 Vicent Marti
434434+435435+Permission to use, copy, modify, and/or distribute this software for any
436436+purpose with or without fee is hereby granted, provided that the above
437437+copyright notice and this permission notice appear in all copies.
438438+439439+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
440440+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
441441+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
442442+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
443443+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
444444+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
445445+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
446446+447447+----------------------------------------------------------------------
448448+449449+The regex library (deps/regex/) is licensed under the GNU LGPL
450450+(available at the end of this file).
451451+452452+Definitions for data structures and routines for the regular
453453+expression library.
454454+455455+Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008
456456+Free Software Foundation, Inc.
457457+This file is part of the GNU C Library.
458458+459459+The GNU C Library is free software; you can redistribute it and/or
460460+modify it under the terms of the GNU Lesser General Public
461461+License as published by the Free Software Foundation; either
462462+version 2.1 of the License, or (at your option) any later version.
463463+464464+The GNU C Library is distributed in the hope that it will be useful,
465465+but WITHOUT ANY WARRANTY; without even the implied warranty of
466466+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
467467+Lesser General Public License for more details.
468468+469469+You should have received a copy of the GNU Lesser General Public
470470+License along with the GNU C Library; if not, write to the Free
471471+Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
472472+02110-1301 USA.
473473+474474+----------------------------------------------------------------------
475475+476476+The bundled winhttp definition files (deps/winhttp/) are licensed under
477477+the GNU LGPL (available at the end of this file).
478478+479479+Copyright (C) 2007 Francois Gouget
480480+481481+This library is free software; you can redistribute it and/or
482482+modify it under the terms of the GNU Lesser General Public
483483+License as published by the Free Software Foundation; either
484484+version 2.1 of the License, or (at your option) any later version.
485485+486486+This library is distributed in the hope that it will be useful,
487487+but WITHOUT ANY WARRANTY; without even the implied warranty of
488488+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
489489+Lesser General Public License for more details.
490490+491491+You should have received a copy of the GNU Lesser General Public
492492+License along with this library; if not, write to the Free Software
493493+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
494494+495495+----------------------------------------------------------------------
496496+497497+ GNU LESSER GENERAL PUBLIC LICENSE
498498+ Version 2.1, February 1999
499499+500500+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
501501+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
502502+ Everyone is permitted to copy and distribute verbatim copies
503503+ of this license document, but changing it is not allowed.
504504+505505+[This is the first released version of the Lesser GPL. It also counts
506506+ as the successor of the GNU Library Public License, version 2, hence
507507+ the version number 2.1.]
508508+509509+ Preamble
510510+511511+ The licenses for most software are designed to take away your
512512+freedom to share and change it. By contrast, the GNU General Public
513513+Licenses are intended to guarantee your freedom to share and change
514514+free software--to make sure the software is free for all its users.
515515+516516+ This license, the Lesser General Public License, applies to some
517517+specially designated software packages--typically libraries--of the
518518+Free Software Foundation and other authors who decide to use it. You
519519+can use it too, but we suggest you first think carefully about whether
520520+this license or the ordinary General Public License is the better
521521+strategy to use in any particular case, based on the explanations below.
522522+523523+ When we speak of free software, we are referring to freedom of use,
524524+not price. Our General Public Licenses are designed to make sure that
525525+you have the freedom to distribute copies of free software (and charge
526526+for this service if you wish); that you receive source code or can get
527527+it if you want it; that you can change the software and use pieces of
528528+it in new free programs; and that you are informed that you can do
529529+these things.
530530+531531+ To protect your rights, we need to make restrictions that forbid
532532+distributors to deny you these rights or to ask you to surrender these
533533+rights. These restrictions translate to certain responsibilities for
534534+you if you distribute copies of the library or if you modify it.
535535+536536+ For example, if you distribute copies of the library, whether gratis
537537+or for a fee, you must give the recipients all the rights that we gave
538538+you. You must make sure that they, too, receive or can get the source
539539+code. If you link other code with the library, you must provide
540540+complete object files to the recipients, so that they can relink them
541541+with the library after making changes to the library and recompiling
542542+it. And you must show them these terms so they know their rights.
543543+544544+ We protect your rights with a two-step method: (1) we copyright the
545545+library, and (2) we offer you this license, which gives you legal
546546+permission to copy, distribute and/or modify the library.
547547+548548+ To protect each distributor, we want to make it very clear that
549549+there is no warranty for the free library. Also, if the library is
550550+modified by someone else and passed on, the recipients should know
551551+that what they have is not the original version, so that the original
552552+author's reputation will not be affected by problems that might be
553553+introduced by others.
554554+555555+ Finally, software patents pose a constant threat to the existence of
556556+any free program. We wish to make sure that a company cannot
557557+effectively restrict the users of a free program by obtaining a
558558+restrictive license from a patent holder. Therefore, we insist that
559559+any patent license obtained for a version of the library must be
560560+consistent with the full freedom of use specified in this license.
561561+562562+ Most GNU software, including some libraries, is covered by the
563563+ordinary GNU General Public License. This license, the GNU Lesser
564564+General Public License, applies to certain designated libraries, and
565565+is quite different from the ordinary General Public License. We use
566566+this license for certain libraries in order to permit linking those
567567+libraries into non-free programs.
568568+569569+ When a program is linked with a library, whether statically or using
570570+a shared library, the combination of the two is legally speaking a
571571+combined work, a derivative of the original library. The ordinary
572572+General Public License therefore permits such linking only if the
573573+entire combination fits its criteria of freedom. The Lesser General
574574+Public License permits more lax criteria for linking other code with
575575+the library.
576576+577577+ We call this license the "Lesser" General Public License because it
578578+does Less to protect the user's freedom than the ordinary General
579579+Public License. It also provides other free software developers Less
580580+of an advantage over competing non-free programs. These disadvantages
581581+are the reason we use the ordinary General Public License for many
582582+libraries. However, the Lesser license provides advantages in certain
583583+special circumstances.
584584+585585+ For example, on rare occasions, there may be a special need to
586586+encourage the widest possible use of a certain library, so that it becomes
587587+a de-facto standard. To achieve this, non-free programs must be
588588+allowed to use the library. A more frequent case is that a free
589589+library does the same job as widely used non-free libraries. In this
590590+case, there is little to gain by limiting the free library to free
591591+software only, so we use the Lesser General Public License.
592592+593593+ In other cases, permission to use a particular library in non-free
594594+programs enables a greater number of people to use a large body of
595595+free software. For example, permission to use the GNU C Library in
596596+non-free programs enables many more people to use the whole GNU
597597+operating system, as well as its variant, the GNU/Linux operating
598598+system.
599599+600600+ Although the Lesser General Public License is Less protective of the
601601+users' freedom, it does ensure that the user of a program that is
602602+linked with the Library has the freedom and the wherewithal to run
603603+that program using a modified version of the Library.
604604+605605+ The precise terms and conditions for copying, distribution and
606606+modification follow. Pay close attention to the difference between a
607607+"work based on the library" and a "work that uses the library". The
608608+former contains code derived from the library, whereas the latter must
609609+be combined with the library in order to run.
610610+611611+ GNU LESSER GENERAL PUBLIC LICENSE
612612+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
613613+614614+ 0. This License Agreement applies to any software library or other
615615+program which contains a notice placed by the copyright holder or
616616+other authorized party saying it may be distributed under the terms of
617617+this Lesser General Public License (also called "this License").
618618+Each licensee is addressed as "you".
619619+620620+ A "library" means a collection of software functions and/or data
621621+prepared so as to be conveniently linked with application programs
622622+(which use some of those functions and data) to form executables.
623623+624624+ The "Library", below, refers to any such software library or work
625625+which has been distributed under these terms. A "work based on the
626626+Library" means either the Library or any derivative work under
627627+copyright law: that is to say, a work containing the Library or a
628628+portion of it, either verbatim or with modifications and/or translated
629629+straightforwardly into another language. (Hereinafter, translation is
630630+included without limitation in the term "modification".)
631631+632632+ "Source code" for a work means the preferred form of the work for
633633+making modifications to it. For a library, complete source code means
634634+all the source code for all modules it contains, plus any associated
635635+interface definition files, plus the scripts used to control compilation
636636+and installation of the library.
637637+638638+ Activities other than copying, distribution and modification are not
639639+covered by this License; they are outside its scope. The act of
640640+running a program using the Library is not restricted, and output from
641641+such a program is covered only if its contents constitute a work based
642642+on the Library (independent of the use of the Library in a tool for
643643+writing it). Whether that is true depends on what the Library does
644644+and what the program that uses the Library does.
645645+646646+ 1. You may copy and distribute verbatim copies of the Library's
647647+complete source code as you receive it, in any medium, provided that
648648+you conspicuously and appropriately publish on each copy an
649649+appropriate copyright notice and disclaimer of warranty; keep intact
650650+all the notices that refer to this License and to the absence of any
651651+warranty; and distribute a copy of this License along with the
652652+Library.
653653+654654+ You may charge a fee for the physical act of transferring a copy,
655655+and you may at your option offer warranty protection in exchange for a
656656+fee.
657657+658658+ 2. You may modify your copy or copies of the Library or any portion
659659+of it, thus forming a work based on the Library, and copy and
660660+distribute such modifications or work under the terms of Section 1
661661+above, provided that you also meet all of these conditions:
662662+663663+ a) The modified work must itself be a software library.
664664+665665+ b) You must cause the files modified to carry prominent notices
666666+ stating that you changed the files and the date of any change.
667667+668668+ c) You must cause the whole of the work to be licensed at no
669669+ charge to all third parties under the terms of this License.
670670+671671+ d) If a facility in the modified Library refers to a function or a
672672+ table of data to be supplied by an application program that uses
673673+ the facility, other than as an argument passed when the facility
674674+ is invoked, then you must make a good faith effort to ensure that,
675675+ in the event an application does not supply such function or
676676+ table, the facility still operates, and performs whatever part of
677677+ its purpose remains meaningful.
678678+679679+ (For example, a function in a library to compute square roots has
680680+ a purpose that is entirely well-defined independent of the
681681+ application. Therefore, Subsection 2d requires that any
682682+ application-supplied function or table used by this function must
683683+ be optional: if the application does not supply it, the square
684684+ root function must still compute square roots.)
685685+686686+These requirements apply to the modified work as a whole. If
687687+identifiable sections of that work are not derived from the Library,
688688+and can be reasonably considered independent and separate works in
689689+themselves, then this License, and its terms, do not apply to those
690690+sections when you distribute them as separate works. But when you
691691+distribute the same sections as part of a whole which is a work based
692692+on the Library, the distribution of the whole must be on the terms of
693693+this License, whose permissions for other licensees extend to the
694694+entire whole, and thus to each and every part regardless of who wrote
695695+it.
696696+697697+Thus, it is not the intent of this section to claim rights or contest
698698+your rights to work written entirely by you; rather, the intent is to
699699+exercise the right to control the distribution of derivative or
700700+collective works based on the Library.
701701+702702+In addition, mere aggregation of another work not based on the Library
703703+with the Library (or with a work based on the Library) on a volume of
704704+a storage or distribution medium does not bring the other work under
705705+the scope of this License.
706706+707707+ 3. You may opt to apply the terms of the ordinary GNU General Public
708708+License instead of this License to a given copy of the Library. To do
709709+this, you must alter all the notices that refer to this License, so
710710+that they refer to the ordinary GNU General Public License, version 2,
711711+instead of to this License. (If a newer version than version 2 of the
712712+ordinary GNU General Public License has appeared, then you can specify
713713+that version instead if you wish.) Do not make any other change in
714714+these notices.
715715+716716+ Once this change is made in a given copy, it is irreversible for
717717+that copy, so the ordinary GNU General Public License applies to all
718718+subsequent copies and derivative works made from that copy.
719719+720720+ This option is useful when you wish to copy part of the code of
721721+the Library into a program that is not a library.
722722+723723+ 4. You may copy and distribute the Library (or a portion or
724724+derivative of it, under Section 2) in object code or executable form
725725+under the terms of Sections 1 and 2 above provided that you accompany
726726+it with the complete corresponding machine-readable source code, which
727727+must be distributed under the terms of Sections 1 and 2 above on a
728728+medium customarily used for software interchange.
729729+730730+ If distribution of object code is made by offering access to copy
731731+from a designated place, then offering equivalent access to copy the
732732+source code from the same place satisfies the requirement to
733733+distribute the source code, even though third parties are not
734734+compelled to copy the source along with the object code.
735735+736736+ 5. A program that contains no derivative of any portion of the
737737+Library, but is designed to work with the Library by being compiled or
738738+linked with it, is called a "work that uses the Library". Such a
739739+work, in isolation, is not a derivative work of the Library, and
740740+therefore falls outside the scope of this License.
741741+742742+ However, linking a "work that uses the Library" with the Library
743743+creates an executable that is a derivative of the Library (because it
744744+contains portions of the Library), rather than a "work that uses the
745745+library". The executable is therefore covered by this License.
746746+Section 6 states terms for distribution of such executables.
747747+748748+ When a "work that uses the Library" uses material from a header file
749749+that is part of the Library, the object code for the work may be a
750750+derivative work of the Library even though the source code is not.
751751+Whether this is true is especially significant if the work can be
752752+linked without the Library, or if the work is itself a library. The
753753+threshold for this to be true is not precisely defined by law.
754754+755755+ If such an object file uses only numerical parameters, data
756756+structure layouts and accessors, and small macros and small inline
757757+functions (ten lines or less in length), then the use of the object
758758+file is unrestricted, regardless of whether it is legally a derivative
759759+work. (Executables containing this object code plus portions of the
760760+Library will still fall under Section 6.)
761761+762762+ Otherwise, if the work is a derivative of the Library, you may
763763+distribute the object code for the work under the terms of Section 6.
764764+Any executables containing that work also fall under Section 6,
765765+whether or not they are linked directly with the Library itself.
766766+767767+ 6. As an exception to the Sections above, you may also combine or
768768+link a "work that uses the Library" with the Library to produce a
769769+work containing portions of the Library, and distribute that work
770770+under terms of your choice, provided that the terms permit
771771+modification of the work for the customer's own use and reverse
772772+engineering for debugging such modifications.
773773+774774+ You must give prominent notice with each copy of the work that the
775775+Library is used in it and that the Library and its use are covered by
776776+this License. You must supply a copy of this License. If the work
777777+during execution displays copyright notices, you must include the
778778+copyright notice for the Library among them, as well as a reference
779779+directing the user to the copy of this License. Also, you must do one
780780+of these things:
781781+782782+ a) Accompany the work with the complete corresponding
783783+ machine-readable source code for the Library including whatever
784784+ changes were used in the work (which must be distributed under
785785+ Sections 1 and 2 above); and, if the work is an executable linked
786786+ with the Library, with the complete machine-readable "work that
787787+ uses the Library", as object code and/or source code, so that the
788788+ user can modify the Library and then relink to produce a modified
789789+ executable containing the modified Library. (It is understood
790790+ that the user who changes the contents of definitions files in the
791791+ Library will not necessarily be able to recompile the application
792792+ to use the modified definitions.)
793793+794794+ b) Use a suitable shared library mechanism for linking with the
795795+ Library. A suitable mechanism is one that (1) uses at run time a
796796+ copy of the library already present on the user's computer system,
797797+ rather than copying library functions into the executable, and (2)
798798+ will operate properly with a modified version of the library, if
799799+ the user installs one, as long as the modified version is
800800+ interface-compatible with the version that the work was made with.
801801+802802+ c) Accompany the work with a written offer, valid for at
803803+ least three years, to give the same user the materials
804804+ specified in Subsection 6a, above, for a charge no more
805805+ than the cost of performing this distribution.
806806+807807+ d) If distribution of the work is made by offering access to copy
808808+ from a designated place, offer equivalent access to copy the above
809809+ specified materials from the same place.
810810+811811+ e) Verify that the user has already received a copy of these
812812+ materials or that you have already sent this user a copy.
813813+814814+ For an executable, the required form of the "work that uses the
815815+Library" must include any data and utility programs needed for
816816+reproducing the executable from it. However, as a special exception,
817817+the materials to be distributed need not include anything that is
818818+normally distributed (in either source or binary form) with the major
819819+components (compiler, kernel, and so on) of the operating system on
820820+which the executable runs, unless that component itself accompanies
821821+the executable.
822822+823823+ It may happen that this requirement contradicts the license
824824+restrictions of other proprietary libraries that do not normally
825825+accompany the operating system. Such a contradiction means you cannot
826826+use both them and the Library together in an executable that you
827827+distribute.
828828+829829+ 7. You may place library facilities that are a work based on the
830830+Library side-by-side in a single library together with other library
831831+facilities not covered by this License, and distribute such a combined
832832+library, provided that the separate distribution of the work based on
833833+the Library and of the other library facilities is otherwise
834834+permitted, and provided that you do these two things:
835835+836836+ a) Accompany the combined library with a copy of the same work
837837+ based on the Library, uncombined with any other library
838838+ facilities. This must be distributed under the terms of the
839839+ Sections above.
840840+841841+ b) Give prominent notice with the combined library of the fact
842842+ that part of it is a work based on the Library, and explaining
843843+ where to find the accompanying uncombined form of the same work.
844844+845845+ 8. You may not copy, modify, sublicense, link with, or distribute
846846+the Library except as expressly provided under this License. Any
847847+attempt otherwise to copy, modify, sublicense, link with, or
848848+distribute the Library is void, and will automatically terminate your
849849+rights under this License. However, parties who have received copies,
850850+or rights, from you under this License will not have their licenses
851851+terminated so long as such parties remain in full compliance.
852852+853853+ 9. You are not required to accept this License, since you have not
854854+signed it. However, nothing else grants you permission to modify or
855855+distribute the Library or its derivative works. These actions are
856856+prohibited by law if you do not accept this License. Therefore, by
857857+modifying or distributing the Library (or any work based on the
858858+Library), you indicate your acceptance of this License to do so, and
859859+all its terms and conditions for copying, distributing or modifying
860860+the Library or works based on it.
861861+862862+ 10. Each time you redistribute the Library (or any work based on the
863863+Library), the recipient automatically receives a license from the
864864+original licensor to copy, distribute, link with or modify the Library
865865+subject to these terms and conditions. You may not impose any further
866866+restrictions on the recipients' exercise of the rights granted herein.
867867+You are not responsible for enforcing compliance by third parties with
868868+this License.
869869+870870+ 11. If, as a consequence of a court judgment or allegation of patent
871871+infringement or for any other reason (not limited to patent issues),
872872+conditions are imposed on you (whether by court order, agreement or
873873+otherwise) that contradict the conditions of this License, they do not
874874+excuse you from the conditions of this License. If you cannot
875875+distribute so as to satisfy simultaneously your obligations under this
876876+License and any other pertinent obligations, then as a consequence you
877877+may not distribute the Library at all. For example, if a patent
878878+license would not permit royalty-free redistribution of the Library by
879879+all those who receive copies directly or indirectly through you, then
880880+the only way you could satisfy both it and this License would be to
881881+refrain entirely from distribution of the Library.
882882+883883+If any portion of this section is held invalid or unenforceable under any
884884+particular circumstance, the balance of the section is intended to apply,
885885+and the section as a whole is intended to apply in other circumstances.
886886+887887+It is not the purpose of this section to induce you to infringe any
888888+patents or other property right claims or to contest validity of any
889889+such claims; this section has the sole purpose of protecting the
890890+integrity of the free software distribution system which is
891891+implemented by public license practices. Many people have made
892892+generous contributions to the wide range of software distributed
893893+through that system in reliance on consistent application of that
894894+system; it is up to the author/donor to decide if he or she is willing
895895+to distribute software through any other system and a licensee cannot
896896+impose that choice.
897897+898898+This section is intended to make thoroughly clear what is believed to
899899+be a consequence of the rest of this License.
900900+901901+ 12. If the distribution and/or use of the Library is restricted in
902902+certain countries either by patents or by copyrighted interfaces, the
903903+original copyright holder who places the Library under this License may add
904904+an explicit geographical distribution limitation excluding those countries,
905905+so that distribution is permitted only in or among countries not thus
906906+excluded. In such case, this License incorporates the limitation as if
907907+written in the body of this License.
908908+909909+ 13. The Free Software Foundation may publish revised and/or new
910910+versions of the Lesser General Public License from time to time.
911911+Such new versions will be similar in spirit to the present version,
912912+but may differ in detail to address new problems or concerns.
913913+914914+Each version is given a distinguishing version number. If the Library
915915+specifies a version number of this License which applies to it and
916916+"any later version", you have the option of following the terms and
917917+conditions either of that version or of any later version published by
918918+the Free Software Foundation. If the Library does not specify a
919919+license version number, you may choose any version ever published by
920920+the Free Software Foundation.
921921+922922+ 14. If you wish to incorporate parts of the Library into other free
923923+programs whose distribution conditions are incompatible with these,
924924+write to the author to ask for permission. For software which is
925925+copyrighted by the Free Software Foundation, write to the Free
926926+Software Foundation; we sometimes make exceptions for this. Our
927927+decision will be guided by the two goals of preserving the free status
928928+of all derivatives of our free software and of promoting the sharing
929929+and reuse of software generally.
930930+931931+ NO WARRANTY
932932+933933+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
934934+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
935935+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
936936+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
937937+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
938938+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
939939+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
940940+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
941941+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
942942+943943+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
944944+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
945945+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
946946+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
947947+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
948948+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
949949+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
950950+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
951951+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
952952+DAMAGES.
953953+954954+ END OF TERMS AND CONDITIONS
955955+956956+ How to Apply These Terms to Your New Libraries
957957+958958+ If you develop a new library, and you want it to be of the greatest
959959+possible use to the public, we recommend making it free software that
960960+everyone can redistribute and change. You can do so by permitting
961961+redistribution under these terms (or, alternatively, under the terms of the
962962+ordinary General Public License).
963963+964964+ To apply these terms, attach the following notices to the library. It is
965965+safest to attach them to the start of each source file to most effectively
966966+convey the exclusion of warranty; and each file should have at least the
967967+"copyright" line and a pointer to where the full notice is found.
968968+969969+ <one line to give the library's name and a brief idea of what it does.>
970970+ Copyright (C) <year> <name of author>
971971+972972+ This library is free software; you can redistribute it and/or
973973+ modify it under the terms of the GNU Lesser General Public
974974+ License as published by the Free Software Foundation; either
975975+ version 2.1 of the License, or (at your option) any later version.
976976+977977+ This library is distributed in the hope that it will be useful,
978978+ but WITHOUT ANY WARRANTY; without even the implied warranty of
979979+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
980980+ Lesser General Public License for more details.
981981+982982+ You should have received a copy of the GNU Lesser General Public
983983+ License along with this library; if not, write to the Free Software
984984+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
985985+986986+Also add information on how to contact you by electronic and paper mail.
987987+988988+You should also get your employer (if you work as a programmer) or your
989989+school, if any, to sign a "copyright disclaimer" for the library, if
990990+necessary. Here is a sample; alter the names:
991991+992992+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
993993+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
994994+995995+ <signature of Ty Coon>, 1 April 1990
996996+ Ty Coon, President of Vice
997997+998998+That's all there is to it!
999999+10001000+----------------------------------------------------------------------
10011001+10021002+The bundled SHA1 collision detection code is licensed under the MIT license:
10031003+10041004+MIT License
10051005+10061006+Copyright (c) 2017:
10071007+ Marc Stevens
10081008+ Cryptology Group
10091009+ Centrum Wiskunde & Informatica
10101010+ P.O. Box 94079, 1090 GB Amsterdam, Netherlands
10111011+ marc@marc-stevens.nl
10121012+10131013+ Dan Shumow
10141014+ Microsoft Research
10151015+ danshu@microsoft.com
10161016+10171017+Permission is hereby granted, free of charge, to any person obtaining a copy
10181018+of this software and associated documentation files (the "Software"), to deal
10191019+in the Software without restriction, including without limitation the rights
10201020+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10211021+copies of the Software, and to permit persons to whom the Software is
10221022+furnished to do so, subject to the following conditions:
10231023+10241024+The above copyright notice and this permission notice shall be included in all
10251025+copies or substantial portions of the Software.
10261026+10271027+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10281028+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10291029+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
10301030+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
10311031+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10321032+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
10331033+SOFTWARE.
10341034+10351035+----------------------------------------------------------------------
10361036+10371037+The bundled wildmatch code is licensed under the BSD license:
10381038+10391039+Copyright Rich Salz.
10401040+All rights reserved.
10411041+10421042+Redistribution and use in any form are permitted provided that the
10431043+following restrictions are are met:
10441044+10451045+1. Source distributions must retain this entire copyright notice
10461046+ and comment.
10471047+2. Binary distributions must include the acknowledgement ``This
10481048+ product includes software developed by Rich Salz'' in the
10491049+ documentation or other materials provided with the
10501050+ distribution. This must not be represented as an endorsement
10511051+ or promotion without specific prior written permission.
10521052+3. The origin of this software must not be misrepresented, either
10531053+ by explicit claim or by omission. Credits must appear in the
10541054+ source and documentation.
10551055+4. Altered versions must be plainly marked as such in the source
10561056+ and documentation and must not be misrepresented as being the
10571057+ original software.
10581058+10591059+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
10601060+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
10611061+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10621062+10631063+----------------------------------------------------------------------
10641064+10651065+Portions of the OpenSSL headers are included under the OpenSSL license:
10661066+10671067+Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
10681068+All rights reserved.
10691069+10701070+This package is an SSL implementation written
10711071+by Eric Young (eay@cryptsoft.com).
10721072+The implementation was written so as to conform with Netscapes SSL.
10731073+10741074+This library is free for commercial and non-commercial use as long as
10751075+the following conditions are aheared to. The following conditions
10761076+apply to all code found in this distribution, be it the RC4, RSA,
10771077+lhash, DES, etc., code; not just the SSL code. The SSL documentation
10781078+included with this distribution is covered by the same copyright terms
10791079+except that the holder is Tim Hudson (tjh@cryptsoft.com).
10801080+10811081+Copyright remains Eric Young's, and as such any Copyright notices in
10821082+the code are not to be removed.
10831083+If this package is used in a product, Eric Young should be given attribution
10841084+as the author of the parts of the library used.
10851085+This can be in the form of a textual message at program startup or
10861086+in documentation (online or textual) provided with the package.
10871087+10881088+Redistribution and use in source and binary forms, with or without
10891089+modification, are permitted provided that the following conditions
10901090+are met:
10911091+1. Redistributions of source code must retain the copyright
10921092+ notice, this list of conditions and the following disclaimer.
10931093+2. Redistributions in binary form must reproduce the above copyright
10941094+ notice, this list of conditions and the following disclaimer in the
10951095+ documentation and/or other materials provided with the distribution.
10961096+3. All advertising materials mentioning features or use of this software
10971097+ must display the following acknowledgement:
10981098+ "This product includes cryptographic software written by
10991099+ Eric Young (eay@cryptsoft.com)"
11001100+ The word 'cryptographic' can be left out if the rouines from the library
11011101+ being used are not cryptographic related :-).
11021102+4. If you include any Windows specific code (or a derivative thereof) from
11031103+ the apps directory (application code) you must include an acknowledgement:
11041104+ "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
11051105+11061106+THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
11071107+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
11081108+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
11091109+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
11101110+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
11111111+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
11121112+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
11131113+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
11141114+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
11151115+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
11161116+SUCH DAMAGE.
11171117+11181118+The licence and distribution terms for any publically available version or
11191119+derivative of this code cannot be changed. i.e. this code cannot simply be
11201120+copied and put under another distribution licence
11211121+[including the GNU Public Licence.]
11221122+11231123+====================================================================
11241124+Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved.
11251125+11261126+Redistribution and use in source and binary forms, with or without
11271127+modification, are permitted provided that the following conditions
11281128+are met:
11291129+11301130+1. Redistributions of source code must retain the above copyright
11311131+ notice, this list of conditions and the following disclaimer.
11321132+11331133+2. Redistributions in binary form must reproduce the above copyright
11341134+ notice, this list of conditions and the following disclaimer in
11351135+ the documentation and/or other materials provided with the
11361136+ distribution.
11371137+11381138+3. All advertising materials mentioning features or use of this
11391139+ software must display the following acknowledgment:
11401140+ "This product includes software developed by the OpenSSL Project
11411141+ for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
11421142+11431143+4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
11441144+ endorse or promote products derived from this software without
11451145+ prior written permission. For written permission, please contact
11461146+ openssl-core@openssl.org.
11471147+11481148+5. Products derived from this software may not be called "OpenSSL"
11491149+ nor may "OpenSSL" appear in their names without prior written
11501150+ permission of the OpenSSL Project.
11511151+11521152+6. Redistributions of any form whatsoever must retain the following
11531153+ acknowledgment:
11541154+ "This product includes software developed by the OpenSSL Project
11551155+ for use in the OpenSSL Toolkit (http://www.openssl.org/)"
11561156+11571157+THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
11581158+EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
11591159+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
11601160+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
11611161+ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
11621162+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
11631163+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
11641164+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
11651165+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
11661166+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
11671167+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
11681168+OF THE POSSIBILITY OF SUCH DAMAGE.
11691169+```
11701170+11711171+### libssh2/libssh2
11721172+11731173+```
11741174+/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
11751175+ * Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
11761176+ * Copyright (c) 2006-2007 The Written Word, Inc.
11771177+ * Copyright (c) 2007 Eli Fant <elifantu@mail.ru>
11781178+ * Copyright (c) 2009-2021 Daniel Stenberg
11791179+ * Copyright (C) 2008, 2009 Simon Josefsson
11801180+ * Copyright (c) 2000 Markus Friedl
11811181+ * Copyright (c) 2015 Microsoft Corp.
11821182+ * All rights reserved.
11831183+ *
11841184+ * Redistribution and use in source and binary forms,
11851185+ * with or without modification, are permitted provided
11861186+ * that the following conditions are met:
11871187+ *
11881188+ * Redistributions of source code must retain the above
11891189+ * copyright notice, this list of conditions and the
11901190+ * following disclaimer.
11911191+ *
11921192+ * Redistributions in binary form must reproduce the above
11931193+ * copyright notice, this list of conditions and the following
11941194+ * disclaimer in the documentation and/or other materials
11951195+ * provided with the distribution.
11961196+ *
11971197+ * Neither the name of the copyright holder nor the names
11981198+ * of any other contributors may be used to endorse or
11991199+ * promote products derived from this software without
12001200+ * specific prior written permission.
12011201+ *
12021202+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
12031203+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
12041204+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
12051205+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
12061206+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
12071207+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
12081208+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
12091209+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12101210+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
12111211+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
12121212+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
12131213+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
12141214+ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
12151215+ * OF SUCH DAMAGE.
12161216+ */
12171217+```
12181218+12191219+### OpenSSL
12201220+12211221+```
12221222+12231223+ LICENSE ISSUES
12241224+ ==============
12251225+12261226+ The OpenSSL toolkit stays under a double license, i.e. both the conditions of
12271227+ the OpenSSL License and the original SSLeay license apply to the toolkit.
12281228+ See below for the actual license texts.
12291229+12301230+ OpenSSL License
12311231+ ---------------
12321232+12331233+/* ====================================================================
12341234+ * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
12351235+ *
12361236+ * Redistribution and use in source and binary forms, with or without
12371237+ * modification, are permitted provided that the following conditions
12381238+ * are met:
12391239+ *
12401240+ * 1. Redistributions of source code must retain the above copyright
12411241+ * notice, this list of conditions and the following disclaimer.
12421242+ *
12431243+ * 2. Redistributions in binary form must reproduce the above copyright
12441244+ * notice, this list of conditions and the following disclaimer in
12451245+ * the documentation and/or other materials provided with the
12461246+ * distribution.
12471247+ *
12481248+ * 3. All advertising materials mentioning features or use of this
12491249+ * software must display the following acknowledgment:
12501250+ * "This product includes software developed by the OpenSSL Project
12511251+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
12521252+ *
12531253+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
12541254+ * endorse or promote products derived from this software without
12551255+ * prior written permission. For written permission, please contact
12561256+ * openssl-core@openssl.org.
12571257+ *
12581258+ * 5. Products derived from this software may not be called "OpenSSL"
12591259+ * nor may "OpenSSL" appear in their names without prior written
12601260+ * permission of the OpenSSL Project.
12611261+ *
12621262+ * 6. Redistributions of any form whatsoever must retain the following
12631263+ * acknowledgment:
12641264+ * "This product includes software developed by the OpenSSL Project
12651265+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
12661266+ *
12671267+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
12681268+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
12691269+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12701270+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
12711271+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
12721272+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
12731273+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
12741274+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12751275+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
12761276+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
12771277+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
12781278+ * OF THE POSSIBILITY OF SUCH DAMAGE.
12791279+ * ====================================================================
12801280+ *
12811281+ * This product includes cryptographic software written by Eric Young
12821282+ * (eay@cryptsoft.com). This product includes software written by Tim
12831283+ * Hudson (tjh@cryptsoft.com).
12841284+ *
12851285+ */
12861286+12871287+ Original SSLeay License
12881288+ -----------------------
12891289+12901290+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
12911291+ * All rights reserved.
12921292+ *
12931293+ * This package is an SSL implementation written
12941294+ * by Eric Young (eay@cryptsoft.com).
12951295+ * The implementation was written so as to conform with Netscapes SSL.
12961296+ *
12971297+ * This library is free for commercial and non-commercial use as long as
12981298+ * the following conditions are aheared to. The following conditions
12991299+ * apply to all code found in this distribution, be it the RC4, RSA,
13001300+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13011301+ * included with this distribution is covered by the same copyright terms
13021302+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
13031303+ *
13041304+ * Copyright remains Eric Young's, and as such any Copyright notices in
13051305+ * the code are not to be removed.
13061306+ * If this package is used in a product, Eric Young should be given attribution
13071307+ * as the author of the parts of the library used.
13081308+ * This can be in the form of a textual message at program startup or
13091309+ * in documentation (online or textual) provided with the package.
13101310+ *
13111311+ * Redistribution and use in source and binary forms, with or without
13121312+ * modification, are permitted provided that the following conditions
13131313+ * are met:
13141314+ * 1. Redistributions of source code must retain the copyright
13151315+ * notice, this list of conditions and the following disclaimer.
13161316+ * 2. Redistributions in binary form must reproduce the above copyright
13171317+ * notice, this list of conditions and the following disclaimer in the
13181318+ * documentation and/or other materials provided with the distribution.
13191319+ * 3. All advertising materials mentioning features or use of this software
13201320+ * must display the following acknowledgement:
13211321+ * "This product includes cryptographic software written by
13221322+ * Eric Young (eay@cryptsoft.com)"
13231323+ * The word 'cryptographic' can be left out if the rouines from the library
13241324+ * being used are not cryptographic related :-).
13251325+ * 4. If you include any Windows specific code (or a derivative thereof) from
13261326+ * the apps directory (application code) you must include an acknowledgement:
13271327+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
13281328+ *
13291329+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
13301330+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
13311331+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
13321332+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
13331333+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
13341334+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
13351335+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13361336+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
13371337+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
13381338+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
13391339+ * SUCH DAMAGE.
13401340+ *
13411341+ * The licence and distribution terms for any publically available version or
13421342+ * derivative of this code cannot be changed. i.e. this code cannot simply be
13431343+ * copied and put under another distribution licence
13441344+ * [including the GNU Public Licence.]
13451345+ */
13461346+```
···11+extends Node3D
22+33+# Used for checking if the mouse is inside the Area3D.
44+var is_mouse_inside = false
55+# The last processed input touch/mouse event. To calculate relative movement.
66+var last_event_pos2D = null
77+# The time of the last event in seconds since engine start.
88+var last_event_time: float = -1.0
99+1010+@onready var node_viewport = $SubViewport
1111+@onready var node_quad = $Quad
1212+@onready var node_area = $Quad/Area3D
1313+1414+func _ready():
1515+ node_area.mouse_entered.connect(_mouse_entered_area)
1616+ node_area.mouse_exited.connect(_mouse_exited_area)
1717+ node_area.input_event.connect(_mouse_input_event)
1818+1919+func _mouse_entered_area():
2020+ is_mouse_inside = true
2121+2222+func _mouse_exited_area():
2323+ is_mouse_inside = false
2424+2525+func _unhandled_input(event):
2626+ # Check if the event is a non-mouse/non-touch event
2727+ for mouse_event in [InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch]:
2828+ if is_instance_of(event, mouse_event):
2929+ # If the event is a mouse/touch event, then we can ignore it here, because it will be
3030+ # handled via Physics Picking.
3131+ return
3232+ node_viewport.push_input(event)
3333+3434+func _mouse_input_event(_camera: Camera3D, event: InputEvent, event_position: Vector3, _normal: Vector3, _shape_idx: int):
3535+ # Get mesh size to detect edges and make conversions. This code only support PlaneMesh and QuadMesh.
3636+ var quad_mesh_size = node_quad.mesh.size
3737+3838+ # Event position in Area3D in world coordinate space.
3939+ var event_pos3D = event_position
4040+4141+ # Current time in seconds since engine start.
4242+ var now: float = Time.get_ticks_msec() / 1000.0
4343+4444+ # Convert position to a coordinate space relative to the Area3D node.
4545+ # NOTE: affine_inverse accounts for the Area3D node's scale, rotation, and position in the scene!
4646+ event_pos3D = node_quad.global_transform.affine_inverse() * event_pos3D
4747+4848+ # TODO: Adapt to bilboard mode or avoid completely.
4949+5050+ var event_pos2D: Vector2 = Vector2()
5151+5252+ if is_mouse_inside:
5353+ # Convert the relative event position from 3D to 2D.
5454+ event_pos2D = Vector2(event_pos3D.x, -event_pos3D.y)
5555+5656+ # Right now the event position's range is the following: (-quad_size/2) -> (quad_size/2)
5757+ # We need to convert it into the following range: -0.5 -> 0.5
5858+ event_pos2D.x = event_pos2D.x / quad_mesh_size.x
5959+ event_pos2D.y = event_pos2D.y / quad_mesh_size.y
6060+ # Then we need to convert it into the following range: 0 -> 1
6161+ event_pos2D.x += 0.5
6262+ event_pos2D.y += 0.5
6363+6464+ # Finally, we convert the position to the following range: 0 -> viewport.size
6565+ event_pos2D.x *= node_viewport.size.x
6666+ event_pos2D.y *= node_viewport.size.y
6767+ # We need to do these conversions so the event's position is in the viewport's coordinate system.
6868+6969+ elif last_event_pos2D != null:
7070+ # Fall back to the last known event position.
7171+ event_pos2D = last_event_pos2D
7272+7373+ # Set the event's position and global position.
7474+ event.position = event_pos2D
7575+ if event is InputEventMouse:
7676+ event.global_position = event_pos2D
7777+7878+ # Calculate the relative event distance.
7979+ if event is InputEventMouseMotion or event is InputEventScreenDrag:
8080+ # If there is not a stored previous position, then we'll assume there is no relative motion.
8181+ if last_event_pos2D == null:
8282+ event.relative = Vector2(0, 0)
8383+ # If there is a stored previous position, then we'll calculate the relative position by subtracting
8484+ # the previous position from the new position. This will give us the distance the event traveled from prev_pos.
8585+ else:
8686+ event.relative = event_pos2D - last_event_pos2D
8787+ event.velocity = event.relative / (now - last_event_time)
8888+8989+ # Update last_event_pos2D with the position we just calculated.
9090+ last_event_pos2D = event_pos2D
9191+9292+ # Update last_event_time to current time.
9393+ last_event_time = now
9494+9595+ # Finally, send the processed input event to the viewport.
9696+ node_viewport.push_input(event)