104 Commits

Author SHA1 Message Date
Mingjie Shen
274d3db34d fix unbounded write of sprintf
Buffer write operations that do not control the length of data written
may overflow. Fix by replacing sprintf() with snprintf().
2024-03-25 00:11:49 -05:00
Cameron Gutman
014af67397 Fix build warnings 2024-02-19 22:01:31 -06:00
Cameron Gutman
3b1b2ab51d Replace FindLibUUID.cmake with modified version from CMake project 2024-02-18 00:25:53 -06:00
Cameron Gutman
02cddf762b Update moonlight-common-c with new encryption support 2024-01-15 17:33:30 -06:00
armin-25689
b3fb22d427 fix: it took so long time to connect to the Sunshine host in the FreeBSD
Disable reuse feature for FreeBSD to prevent excessive time from being spent connecting to the Sunshine host
2024-01-01 12:41:51 -06:00
Cameron Gutman
000d9da4a0 Don't hardcode the signature length 2023-11-29 23:48:09 -06:00
Cameron Gutman
ab53f149f2 Update moonlight-common-c with Sunshine extensions 2023-08-29 20:46:35 -05:00
Cameron Gutman
8384a243b2 Modernize HTTPS launch/resume for Sunshine 2023-02-21 23:46:31 -06:00
Cameron Gutman
1feeab9c71 Fix more warnings 2022-11-20 20:41:21 -06:00
Cameron Gutman
098f53cd0b Fix several build warnings and minor bugs 2022-11-20 19:34:19 -06:00
Cameron Gutman
c2f21b955d Implement foundation for HDR support
Likely not functional for any decoder yet
2022-11-08 19:40:03 -06:00
Cameron Gutman
f021439d1b Allow a pairing attempt even if the PC is busy
Pairing while busy doesn't work with GFE but works with Sunshine
2022-10-12 22:28:30 -05:00
Cameron Gutman
0a9cadb729 Remove unused variable 2022-09-23 22:52:53 -05:00
Cameron Gutman
0325a3b88c Add support for custom ports with Sunshine 2022-09-23 22:48:43 -05:00
Cameron Gutman
3f00f25a39 Store port information in SERVER_DATA 2022-09-23 22:12:03 -05:00
Cameron Gutman
1b95f027a2 Fix handling of 3 byte Annex B start sequences 2022-09-05 22:53:25 +00:00
Cameron Gutman
5fe7b36b40 Reduce use of magic numbers 2022-04-21 23:31:04 -05:00
Cameron Gutman
d74cc63038 Fix stack buffer overflow in pairing process 2022-04-21 23:06:31 -05:00
Cameron Gutman
039040e247 Replace usage of functions deprecated in OpenSSL 3.0 2022-04-21 23:04:23 -05:00
Cameron Gutman
0cfc557c9c Don't fail if SOPS isn't supported at the current resolution 2021-07-25 15:01:46 -05:00
Cameron Gutman
1478d69123 Pass RTSP session URL to moonlight-common-c 2021-07-25 14:22:39 -05:00
Cameron Gutman
66ec344a31 Remove old reference to ENET_LIBRARIES 2021-07-25 13:25:27 -05:00
Cameron Gutman
fc44f010f8 Update SPS fixup code to match current Qt/Android version 2021-07-24 07:39:03 -05:00
Cameron Gutman
e84ae26ccc Avoid needless EVP_get_digestbyname() and EVP_DigestInit_ex() calls 2021-07-24 07:27:03 -05:00
Cameron Gutman
faa7eef9a4 Don't add X509v3 extensions
There is something wrong with the combination of extension we add
that causes OpenSSL to believe these certificates were issued by
a CA and fail to validate them because it can't find the issuing
CA cert.

The certificates work fine without the extensions, so just don't
add them (which is what other Moonlight clients do).
2021-07-24 07:21:52 -05:00
Cameron Gutman
296c8de759 Fix copying rikeyid value 2021-07-24 07:13:55 -05:00
Iwan Timmer
d7f9bc0b25 Switch back to upstream moonlight-common-c 2021-07-22 21:04:08 +02:00
Mariotaku Lee
660cc7de41 Added missing import 2021-04-29 03:56:45 +09:00
Mariotaku Lee
a97b2cc3af Randomized input IV 2021-04-29 03:43:40 +09:00
KiralyCraft
338063fc2c Changed random Client ID to the same as official Moonlight 2021-04-21 19:39:37 +02:00
Cameron Gutman
957bc49da9 Fix frame rate locked to 60 FPS with GFE 3.20.3 2020-05-25 21:38:14 -07:00
Cameron Gutman
0c6f98e544 Fix surround sound on a resumed session 2020-04-23 19:29:07 -07:00
Iwan Timmer
7f856d3284 Warn about unsupported resolutions in combination with SOPS
When using unsupported resolutions SOPS will default to 720p60
2020-03-17 22:37:18 +01:00
Iwan Timmer
a66d75b145 Sent max FPS value of 60 when using SOPS
SOPS defaults to 720p60 when using FPS values higher than 60.
This FPS value isn't used for the actual stream so higher FPS is still working.
2020-03-17 22:29:32 +01:00
Hugo Hromic
434dba31de General codebase clean-ups (no code changes)
* Remove trailing spaces
* Replace TABs with spaces
* Add missing indentation
2019-10-05 19:13:24 +01:00
Cameron Gutman
519a14a427 Use a SHA256 signature for the client certificate 2019-07-05 13:36:49 -07:00
Cameron Gutman
5f167ce109 Fix SPS length being 4 bytes short 2019-05-01 19:21:05 -07:00
Cameron Gutman
7f4f1cb91e Fix unintended assignment 2019-04-30 19:47:40 -07:00
Cameron Gutman
2f687cc58a Don't modify the decode unit in place 2019-04-30 18:55:18 -07:00
Sauyon Lee
7c21672c94 replace malloc/strcpy pair with strdup to allocate correct size 2018-09-18 12:21:29 -07:00
Iwan Timmer
c8195f796c Provide gamepad mask at startup 2018-04-08 11:28:55 +00:00
Cameron Gutman
0810794220 Ignore mDNS responses over IPv6 since this client doesn't support IPv6. Fixes #629 2018-02-27 22:02:03 -08:00
Iwan Timmer
6411150383 Fix for video corruption 2018-01-14 14:06:36 +00:00
Iwan Timmer
a4b6de139a Use PATH_MAX and memory safe string operations in libgamestream 2017-12-19 19:37:59 +01:00
Iwan Timmer
86ee3fd290 Fix enabling C99 on older compilers 2017-11-04 12:29:45 +01:00
Iwan Timmer
a0c43053e7 Fix for GFE 3.10 2017-10-24 19:59:33 +02:00
Iwan Timmer
06c3c7aada Readd C_STANDARD property for libgamestream and moonlight-common-c 2017-09-07 11:08:33 +02:00
Iwan Timmer
d32b5b656f Set C99 usage globally instead of per target 2017-09-06 22:14:22 +02:00
Iwan Timmer
1b8ac983e5 Check status code for GS api requests 2017-08-06 22:06:55 +02:00
Iwan Timmer
2c35e70cc0 Use --unsupported option also for unsupported resolutions 2017-06-16 21:49:10 +02:00