Files
ppsspp/ext
Henrik Rydgård a0873e5b0e Enable HTTPS on Linux, through naett's libcurl backend
naett has had a complete libcurl backend all along; we just never built it,
so Linux ran with HTTPS_NOT_AVAILABLE. That means no homebrew store over
HTTPS, and RetroAchievements talking to plain http://retroachievements.org.

libcurl is loaded with dlopen rather than linked, the same way we handle the
Vulkan loader, so it stays a soft dependency: we need the curl headers at
build time, but a build made here still starts on a machine without libcurl
installed - it just reports HTTPS as unavailable, exactly like today. Distro
packagers get the behavior they'd expect either way, and certificate
validation comes free from the system CA store.

New net::HTTPSAvailable() answers "did that work", and SDLMain folds it into
SYSPROP_SUPPORTS_HTTPS, which everything downstream already degrades on.

Four fixes to the backend itself, all noted in ext/naett/README-ppsspp.md:

- panic() called exit(1) on a pipe or curl_multi_perform failure. Taking the
  emulator down because a download failed isn't acceptable - the backend now
  disables itself and requests complete with naettGenericError.
- CURLINFO_RESPONSE_CODE writes a long into res->code, which is an int. Eight
  bytes into four, getting away with it only because the next field absorbs
  the zeroes.
- curl_easy_setopt is varargs and wants a long for these options; int literals
  and int variables are UB on LP64.
- naettPlatformCloseResponse called through a null function pointer when
  libcurl was missing. Found by testing that path, which segfaulted.

CI needs libcurl4-openssl-dev (curl-dev on Alpine) or it would quietly keep
building without HTTPS.
2026-09-02 17:42:04 +02:00
..
2026-07-26 14:43:00 +02:00
2026-08-11 22:36:47 +02:00
2025-05-29 09:57:51 +02:00
2024-07-27 18:56:13 +02:00
2025-06-10 15:05:18 +02:00
2025-01-19 10:32:07 +01:00
2025-09-19 10:31:51 -06:00
2024-06-03 18:03:57 +02:00
2026-07-01 22:39:53 +02:00
2025-10-15 15:06:11 -04:00
2025-10-17 12:57:51 +02:00
2025-08-24 14:47:05 +02:00
2025-08-24 14:47:05 +02:00
2026-06-16 11:49:40 +02:00
2025-08-24 14:47:05 +02:00
2022-09-04 23:54:14 -07:00
2022-09-04 23:54:14 -07:00