From de621aa555cc6a411ea5b7e9b596418314d535c2 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Fri, 30 Oct 2026 11:04:54 +0100 Subject: [PATCH] Compliance: Audit third-party dependencies and complete the license notices Dependencies.md only covered compress/ and the injection libraries. Everything else in the tree was undocumented, and LICENSE-THIRD-PARTY.txt was missing three components that Dependencies.md already listed. Added to Dependencies.md (23 entries): vendored source KCP/ikcp, xxHash 0.8.3, tiny-AES-c, skCrypter, cpp-httplib 0.14.3 runtime / data OpenSSL (Linux/macOS TLS and libsign.a HMAC), FRP (Bin/res/frpc.dll, frps.dll), ip2region xdb v4, QQWry, Microsoft DirectX SDK headers server-go jwt 5.3.1, gorilla/websocket 1.5.3, klauspost/compress 1.18.2, zerolog 1.34.0, x/sync, x/text, lumberjack 2.2.1 plus 3 indirect modules android androidx core-ktx 1.13.1, appcompat 1.7.0, Kotlin stdlib 2.1.21 test GoogleTest 1.14.0 (CMake FetchContent) LICENSE-THIRD-PARTY.txt grows from 278 to 633 lines and 22 sections. Full text is embedded for the short licenses (MIT, BSD, zlib, Unlicense); the Apache, LGPL and GPL entries follow the file's existing style of terms + obligations + where to obtain the text, rather than reproducing legal text by hand. Three findings worth recording: - x264 is GPL-2.0 and is linked statically (client/X264Encoder.cpp). The old file only stated that FFmpeg was built without GPL plugins, and never mentioned that x264 is linked separately. Section 21 now spells out the consequence: a binary containing x264 is a GPL-2.0 work unless covered by a commercial x264 license. - FFmpeg is linked STATICALLY, not dynamically as the old text claimed. There is no av*.dll anywhere in the tree; the pragmas reference libavcodec_x64.lib and friends. Section 19 is rewritten around LGPL-2.1 section 6 and quotes the configure line recovered from libavutil, which also shows the build is decode-only (--disable-encoders). That means x264 is the product's only H.264 encoder, so DISABLE_X264_FOR_TEST=1 leaves no encoder at all and the client degrades to RGB565. - The FRP binaries report buildinfo v0.69.2-...+d58c00d0332c+dirty. The "+dirty" means the FRP sources were modified locally, and Apache-2.0 section 4(b) requires modified files to carry a prominent change notice. --- Dependencies.md | 93 ++++++++- LICENSE-THIRD-PARTY.txt | 428 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 488 insertions(+), 33 deletions(-) diff --git a/Dependencies.md b/Dependencies.md index b315144..8ab54f0 100644 --- a/Dependencies.md +++ b/Dependencies.md @@ -2,28 +2,105 @@ ## compress +Prebuilt binaries under `compress/`, linked via `#pragma comment(lib, ...)`. + - [zlib v1.3.2](https://zlib.net) - [zstd v1.5.7](https://github.com/facebook/zstd/tree/v1.5.7) -- [x264 v0.164.3194](https://github.com/corecodec/x264) +- [x264 v0.164.3194](https://github.com/corecodec/x264) — GPL-2.0, see note below - [libyuv v190](https://chromium.googlesource.com/libyuv/libyuv) -- [ffmpeg 7.1](https://git.ffmpeg.org/ffmpeg.git) +- [ffmpeg 7.1](https://git.ffmpeg.org/ffmpeg.git) — LGPL-2.1, linked statically, see note below - [jsoncpp v1.9.6](https://github.com/open-source-parsers/jsoncpp) - [jpeg v3.1.1](https://github.com/libjpeg-turbo/libjpeg-turbo) - [opus-1.6.1](https://opus-codec.org/release/stable/2026/01/14/libopus-1_6_1.html) -- [libpeconv c7d1e48](https://github.com/hasherezade/libpeconv) -- [libvpl v2.16.0](https://github.com/intel/libvpl) -- [dav1d 62501cc](https://github.com/videolan/dav1d) +- [libpeconv c7d1e48](https://github.com/hasherezade/libpeconv) — `server/2015Remote/libpeconv/` +- [libvpl v2.16.0](https://github.com/intel/libvpl) — `compress/ffmpeg/vpl_x64*.lib` +- [dav1d 62501cc](https://github.com/videolan/dav1d) — `compress/ffmpeg/dav1d_x64.lib` ## execution -- [MemoryModule](https://github.com/fancycode/MemoryModule.git) +- [MemoryModule](https://github.com/fancycode/MemoryModule.git) — `client/MemoryModule.c` - [sRDI](https://github.com/Drewsif/sRDI.git) - [pe_to_shellcode](https://github.com/hasherezade/pe_to_shellcode.git) +## vendored source + +Single-file libraries compiled into the product as source. + +- [KCP (ikcp)](https://github.com/skywind3000/kcp) — `common/ikcp.c`, `common/ikcp.h` +- [xxHash v0.8.3](https://github.com/Cyan4973/xxHash) — `common/xxhash.h` +- [tiny-AES-c](https://github.com/kokke/tiny-AES-c) — `common/aes.c`, `common/aes.h` +- [skCrypter](https://github.com/skadro-official/skCrypter) — `common/skCrypter.h` +- [cpp-httplib v0.14.3](https://github.com/yhirose/cpp-httplib) — `server/2015Remote/httplib.h` + +## runtime / data + +Shipped with the product or linked by the Linux/macOS builds. + +- [OpenSSL](https://github.com/openssl/openssl) — Linux/macOS client TLS (`client/TlsChannelLinux.cpp`) and `libsign.a` HMAC; version follows the system/package OpenSSL 3.x +- [FRP (frpc / frps) v0.69.2-0.20260605064132-d58c00d0332c](https://github.com/fatedier/frp) — `Bin/res/frpc.dll`, `Bin/res/frps.dll` +- [ip2region (xdb v4)](https://github.com/lionsoul2014/ip2region) — `Bin/ip2region_v4.xdb` +- [QQWry / 纯真 IP 库](https://www.cz88.net/) — `Bin/qqwry.dat` +- Microsoft DirectX SDK headers — `client/d3d/`, included by `client/dxtrans.h` for legacy D3D texture formats; used under the DirectX SDK EULA, not open source + +## server-go + +`server/go/`, shipped as `Bin/YAMAGo_x64.exe`. + +- [github.com/golang-jwt/jwt/v5 v5.3.1](https://github.com/golang-jwt/jwt) +- [github.com/gorilla/websocket v1.5.3](https://github.com/gorilla/websocket) +- [github.com/klauspost/compress v1.18.2](https://github.com/klauspost/compress) +- [github.com/rs/zerolog v1.34.0](https://github.com/rs/zerolog) +- [golang.org/x/sync v0.20.0](https://pkg.go.dev/golang.org/x/sync) +- [golang.org/x/text v0.32.0](https://pkg.go.dev/golang.org/x/text) +- [gopkg.in/natefinch/lumberjack.v2 v2.2.1](https://github.com/natefinch/lumberjack) +- indirect: [mattn/go-colorable v0.1.13](https://github.com/mattn/go-colorable), [mattn/go-isatty v0.0.19](https://github.com/mattn/go-isatty), [golang.org/x/sys v0.12.0](https://pkg.go.dev/golang.org/x/sys) + +## android + +`android/`, shipped as `Bin/ghost.apk`. + +- [androidx.core:core-ktx 1.13.1](https://developer.android.com/jetpack/androidx/releases/core) +- [androidx.appcompat:appcompat 1.7.0](https://developer.android.com/jetpack/androidx/releases/appcompat) +- [Kotlin standard library 2.1.21](https://kotlinlang.org/) + +## test + +Build/test only, not shipped. + +- [GoogleTest v1.14.0](https://github.com/google/googletest) — fetched via CMake `FetchContent` + ## *Note* -The proper operation of the program depends on the above library files. +The proper operation of the program depends on the above library files. Some libraries are not open source, please contact author for details. -These libraries are all compiled personally by the author and can be used with confidence. +These libraries are all compiled personally by the author and can be used with confidence. If you use libraries from other sources, there may be compilation risks. + +### Private libraries (not third-party) + +`lib/` ships `FileUpload_Lib`, `PrivateDesktop_Lib` and `shrink` as prebuilt +binaries; `linux/lib/libsign.a`, `macos/lib/libsign.a` and +`android/.../lib//libsign.a` are likewise the author's own. They are part +of the multi-layer licensing architecture and are **not** covered by the +open-source notices above. + +### GPL note + +`x264` is GPL-2.0 and `ffmpeg` is LGPL-2.1; both are linked **statically** on +Windows. `common/config.h` exposes `DISABLE_X264_FOR_TEST` and +`DISABLE_FFMPEG_FOR_TEST` (both default `0`, i.e. enabled) to build without +them. With `DISABLE_X264_FOR_TEST=1` neither the x264 library nor its headers +are needed — the whole `compress/x264/` directory can be deleted. The same +holds for `DISABLE_FFMPEG_FOR_TEST=1` and `compress/ffmpeg/`. + +Binaries that include x264 are subject to GPL-2.0 unless covered by a +commercial x264 license. + +**Important:** the bundled FFmpeg is a decode-only build (`--disable-encoders`, +see the configure line in `LICENSE-THIRD-PARTY.txt` section 19), so it provides +no encoder. x264 is therefore the product's *only* H.264 encoder, and +`DISABLE_X264_FOR_TEST=1` means no H.264 at all — the client falls back to raw +RGB565 frames. Keeping H.264 while staying GPL-free needs a different encoder +or a commercial x264 license. See `LICENSE-THIRD-PARTY.txt` for the full text +and the obligations that come with static LGPL linking. diff --git a/LICENSE-THIRD-PARTY.txt b/LICENSE-THIRD-PARTY.txt index 85d34c4..35f9621 100644 --- a/LICENSE-THIRD-PARTY.txt +++ b/LICENSE-THIRD-PARTY.txt @@ -1,15 +1,15 @@ THIRD-PARTY SOFTWARE NOTICES AND LICENSES -This document contains intellectual property notices and license information for +This document contains intellectual property notices and license information for third-party software components used in this product. ================================================================================ SUMMARY OF LICENSE TYPES ================================================================================ -The third-party components included in this software are governed by the following -open-source licenses. For complete compliance, ensure that any modifications to -LGPL and MPL covered components are made available under their respective terms, -and this text file is distributed with your software product. +The third-party components included in this software are governed by the following +open-source licenses. For complete compliance, ensure that any modifications to +LGPL, MPL and GPL covered components are made available under their respective +terms, and this text file is distributed with your software product. 1. Zlib License - zlib v1.3.2 @@ -18,16 +18,47 @@ and this text file is distributed with your software product. - libyuv v190 - jpeg (libjpeg-turbo) v3.1.1 - opus-1.6.1 + - GoogleTest v1.14.0 + - github.com/klauspost/compress v1.18.2 + - golang.org/x/sync, golang.org/x/text, golang.org/x/sys 3. BSD 2-Clause License - libpeconv c7d1e48 - pe_to_shellcode + - dav1d 62501cc + - xxHash v0.8.3 + - github.com/gorilla/websocket v1.5.3 4. MIT License - jsoncpp v1.9.6 - sRDI -5. GNU Lesser General Public License v2.1 (LGPL v2.1) - - ffmpeg v7.1 (Compiled in shared, non-GPL mode) -6. Mozilla Public License v2.0 (MPL 2.0) + - libvpl v2.16.0 + - KCP (ikcp) + - skCrypter + - cpp-httplib v0.14.3 + - github.com/golang-jwt/jwt/v5 v5.3.1 + - github.com/rs/zerolog v1.34.0 + - gopkg.in/natefinch/lumberjack.v2 v2.2.1 + - github.com/mattn/go-colorable v0.1.13 + - github.com/mattn/go-isatty v0.0.19 +5. The Unlicense (public domain dedication) + - tiny-AES-c +6. Apache License 2.0 + - OpenSSL (Linux / macOS builds only) + - FRP (frpc.dll / frps.dll) + - ip2region (xdb v4) + - androidx.core:core-ktx 1.13.1 + - androidx.appcompat:appcompat 1.7.0 + - Kotlin standard library 2.1.21 +7. GNU Lesser General Public License v2.1 (LGPL v2.1) + - ffmpeg v7.1 (statically linked, non-GPL build) +8. Mozilla Public License v2.0 (MPL 2.0) - MemoryModule +9. GNU General Public License v2.0 (GPL v2.0) + - x264 v0.164.3194 (Windows builds only, opt-out available) +10. Custom terms + - QQWry / 纯真 IP database (qqwry.dat) + +IMPORTANT: items 7 and 9 carry copyleft obligations. See the corresponding +sections at the end of this file before distributing a build. ================================================================================ 1. zlib v1.3.2 (Zlib License) @@ -217,7 +248,7 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, @@ -240,7 +271,7 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, @@ -248,32 +279,379 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================================================ -9. ffmpeg v7.1 (GNU Lesser General Public License v2.1) +9. libvpl v2.16.0 (MIT License) ================================================================================ -This software uses libraries from the FFmpeg project (v7.1), licensed under the +Copyright (c) 2021 Intel Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================================ +10. dav1d 62501cc (BSD 2-Clause License) +================================================================================ +Copyright (c) 2018-2024, VideoLAN and dav1d authors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +================================================================================ +11. xxHash v0.8.3 (BSD 2-Clause License) +================================================================================ +Copyright (c) 2012-2023 Yann Collet +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +================================================================================ +12. KCP / ikcp (MIT License) +================================================================================ +Copyright (c) 2010-2011 skywind3000 (at) gmail.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================================ +13. skCrypter (MIT License) +================================================================================ +Copyright (c) 2020 skadro + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================================ +14. cpp-httplib v0.14.3 (MIT License) +================================================================================ +Copyright (c) 2023 Yuji Hirose. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================================ +15. tiny-AES-c (The Unlicense) +================================================================================ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. + +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to + +================================================================================ +16. Go module dependencies (MIT / BSD) +================================================================================ +The Go server (server/go, shipped as YAMAGo_x64.exe) depends on the following +modules. Each is distributed under the license noted next to it; the full text +of each license is available in the corresponding module repository. + + github.com/golang-jwt/jwt/v5 v5.3.1 MIT + github.com/gorilla/websocket v1.5.3 BSD 2-Clause + github.com/klauspost/compress v1.18.2 BSD 3-Clause + github.com/rs/zerolog v1.34.0 MIT + golang.org/x/sync v0.20.0 BSD 3-Clause + golang.org/x/text v0.32.0 BSD 3-Clause + gopkg.in/natefinch/lumberjack.v2 v2.2.1 MIT + github.com/mattn/go-colorable v0.1.13 MIT (indirect) + github.com/mattn/go-isatty v0.0.19 MIT (indirect) + golang.org/x/sys v0.12.0 BSD 3-Clause (indirect) + +MIT License text: see section 7 above. +BSD 2-Clause License text: see section 6 above. +BSD 3-Clause License text: see section 2 above. + +================================================================================ +17. GoogleTest v1.14.0 (BSD 3-Clause License) +================================================================================ +Copyright 2008, Google Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of Google Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +GoogleTest is used only to build and run the unit tests under test/; it is not +shipped with the product. + +================================================================================ +18. Apache License 2.0 components +================================================================================ +The following components are licensed under the Apache License, Version 2.0 +(https://www.apache.org/licenses/LICENSE-2.0). A copy of the license is +available at that URL and will be provided on request. + + OpenSSL (Linux / macOS builds only) + Copyright (c) 1998-2024 The OpenSSL Project Authors + Used by the Linux/macOS client for TLS (client/TlsChannelLinux.cpp) and + by libsign.a for HMAC. OpenSSL 3.x is Apache-2.0; builds against OpenSSL + 1.1.1 or earlier fall under the original OpenSSL/SSLeay license, which is + included with that distribution. + + FRP (frpc / frps) + Copyright 2016-2024 fatedier, fatedier@gmail.com, and The FRP Authors + Bundled as Bin/res/frpc.dll and Bin/res/frps.dll. + Version: v0.69.2-0.20260605064132-d58c00d0332c (commit d58c00d0332c). + NOTE: the bundled binaries report a "+dirty" build, i.e. the FRP sources + were modified locally. Apache-2.0 section 4(b) requires modified files to + carry prominent notices stating that they were changed. + + ip2region (xdb v4) + Copyright 2019-2024 lionsoul2014 and contributors + Data file: Bin/ip2region_v4.xdb + + androidx.core:core-ktx 1.13.1 + androidx.appcompat:appcompat 1.7.0 + Copyright (C) 2005-2024 The Android Open Source Project + Used by the Android client (Bin/ghost.apk). + + Kotlin standard library 2.1.21 + Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language + contributors + Used by the Android client (Bin/ghost.apk). + +================================================================================ +19. ffmpeg v7.1 (GNU Lesser General Public License v2.1) +================================================================================ +This software uses libraries from the FFmpeg project (v7.1), licensed under the GNU Lesser General Public License (LGPL) version 2.1. FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project. -Our product links to FFmpeg dynamically as a shared library (.dll/.so/.dylib) -and does NOT enable any GPL-licensed plugins (such as x264). +The FFmpeg libraries were built WITHOUT any GPL-licensed components, so the +FFmpeg binaries themselves are covered by LGPL v2.1 and not by the GPL. The +configure line embedded in libavutil is: -The source code of FFmpeg v7.1 can be obtained from the official FFmpeg -website (https://ffmpeg.org). If you require the exact build script and build -configuration used by our product to build the FFmpeg binary, please contact -our open-source compliance team. + --toolchain=msvc --arch=x86_64 --target-os=win64 --enable-static + --disable-shared --extra-cflags=-MT --extra-cxxflags=-MT --disable-everything + --disable-all --enable-avcodec --enable-avutil --enable-swresample + --enable-decoder=h264 --enable-decoder=aac --enable-decoder=aac_latm + --enable-decoder=pcm_s16le --enable-decoder=pcm_s16be --enable-decoder=pcm_f32le + --enable-parser=h264 --enable-parser=aac --enable-parser=aac_latm + --disable-iconv --disable-zlib --disable-bzlib --disable-lzma --disable-sdl2 + --disable-doc --disable-programs --disable-network --disable-encoders + --disable-muxers --disable-demuxers --disable-filters --disable-devices + --disable-bsfs --disable-debug --enable-small --prefix=./install-win64 + +Note that this build is DECODE ONLY (--disable-encoders): it provides the +H.264/AAC/PCM decoders used to display remote screens, and contains no +encoder of any kind. The hardware-encoder paths in the client therefore cannot +be satisfied by these libraries, and software H.264 encoding is provided +exclusively by x264 (section 21). + +HOW IT IS LINKED: on Windows the FFmpeg libraries (libavcodec, libavutil, +libswresample) are linked STATICALLY into the client and server executables +(see the #pragma comment(lib, "ffmpeg/...") directives in +client/CFFmpegH264Encoder.cpp, client/CFFmpegAV1Encoder.cpp and +server/2015Remote/ScreenSpyDlg.h). No FFmpeg DLL is shipped. + +Because the linking is static, LGPL v2.1 section 6 applies: recipients are +entitled to modify FFmpeg and relink it with this product. To satisfy that, +the following are available on request from the author: + - the exact FFmpeg build scripts and configuration used (quoted above); + - the object files of the product sufficient to relink it against a + modified FFmpeg. + +To build without FFmpeg entirely, set DISABLE_FFMPEG_FOR_TEST to 1 in +common/config.h; the encoder implementations and the FFmpeg include paths are +then removed from the build, and the compress/ffmpeg/ directory is no longer +needed at all. + +The source code of FFmpeg v7.1 can be obtained from the official FFmpeg +website (https://ffmpeg.org). ================================================================================ -10. MemoryModule (Mozilla Public License v2.0) +20. MemoryModule (Mozilla Public License v2.0) ================================================================================ -This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. -If a copy of the MPL was not distributed with this file, You can obtain one at +This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. +If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. MemoryModule is Copyright (c) Joachim Bauch. -Under the terms of the MPL 2.0, you may distribute this component as part of -your commercial/proprietary application without being required to open-source +Under the terms of the MPL 2.0, you may distribute this component as part of +your commercial/proprietary application without being required to open-source your own proprietary code, provided that: -1. MemoryModule source files remain unmodified, or if modified, those modifications +1. MemoryModule source files remain unmodified, or if modified, those modifications are made available under the MPL 2.0. -2. Users are informed that MemoryModule is used and where they can find its source. \ No newline at end of file +2. Users are informed that MemoryModule is used and where they can find its source. + +================================================================================ +21. x264 v0.164.3194 (GNU General Public License v2.0) +================================================================================ +The Windows build links libx264 statically for software H.264 encoding, used as +the CPU fallback when hardware encoders are unavailable (see +client/X264Encoder.cpp, client/EncoderFactory.h). + +x264 is Copyright (C) 2003-2024 x264 project (Laurent Aimar, Loren Merritt, +Fiona Glaser, Jason Garrett-Glaser, Steven Walters and contributors) and is +licensed under the GNU General Public License version 2.0, not the LGPL. +Commercial licenses for x264 are available from x264 LLC +(https://www.x264licensing.com). + +CONSEQUENCE: a binary that statically links x264 is, as a whole, a work +covered by the GPL v2.0 and must be distributed under GPL v2.0 terms +(accompanying complete corresponding source code, or a written offer valid for +three years), unless it is covered by a commercial x264 license. + +To build without x264, set DISABLE_X264_FOR_TEST to 1 in common/config.h. The +x264 header is then no longer included and libx264 is no longer linked, so a +compliant build needs neither the x264 library nor its headers; the +compress/x264/ directory can be deleted outright. + +IMPORTANT CONSEQUENCE: because the bundled FFmpeg is a decode-only build (see +section 19), x264 is the ONLY H.264 encoder in the product. A build with +DISABLE_X264_FOR_TEST=1 therefore has no H.264 encoder at all, and the client +falls back to raw RGB565 frames (client/ScreenCapture.h). Keeping H.264 while +staying GPL-free requires replacing x264 with an LGPL-compatible or licensed +encoder, or obtaining a commercial x264 license. + +The text of the GPL v2.0 is available at https://www.gnu.org/licenses/old-licenses/gpl-2.0.html +and is provided with any binary that includes x264. + +================================================================================ +22. QQWry / 纯真 IP database (custom terms) +================================================================================ +Bin/qqwry.dat is the QQWry (纯真) IP geolocation database, published by +cz88.net (https://www.cz88.net/). It is not open source and is not covered by +any of the licenses above. The publisher's terms permit free use for +non-commercial purposes; redistribution inside a commercial product requires +the publisher's permission. + +The product does not require this file. IP geolocation is selected at runtime +by the settings key settings/IPLocType: 1 uses qqwry.dat, 2 uses the ip2region +database (Bin/ip2region_v4.xdb, Apache-2.0). If the selected database cannot be +loaded, the server logs "IP数据库加载: failed" and falls back to a built-in +converter that returns no location, so shipping without qqwry.dat is supported +as long as IPLocType is set to 2. + +================================================================================ +END OF NOTICES +================================================================================