Feature: Add on-demand TLS transport with hot-switch to the Android client
Reuse the Linux OpenSSL TlsChannel implementation (platform guard widened to __linux__); the trust anchor lives in the app-private filesDir, injected via TlsSetAnchorDir in nativeInit before the connection thread starts. COMMAND_TLS_ENABLE/DISABLE save/remove the anchor, hot-reload and reconnect only when the transport actually changes, so the master menu takes effect within seconds without restarting the app. Login reports RES_TLS, refreshed before each re-login. The reconnect flag is consumed before the drop check and cleared before reconnecting so a switch racing a disconnect cannot cause an extra reconnect/login cycle. Cross-compile OpenSSL 3.5.0 per ABI with build_openssl_android.sh (NDK clang + MSYS2 perl/make), integrated into build_android_libs.ps1 (-OpenSslOnly). Static libs and per-ABI headers are tracked like the existing libzstd/libsign prebuilts; --exclude-libs keeps OpenSSL symbols private to libyama.so, isolated from the Java-layer Conscrypt. Co-Authored-By: Qoder <noreply@qoder.com>
This commit is contained in:
1 parent
36618b0ad0
commit
51747dc0ea
586 files changed
+183905
-35
No files matched your search
@@ -19,3 +19,11 @@ local.properties
|
||||
|
||||
# Force-track prebuilt static libs (overrides root .gitignore *.a rule)
|
||||
!app/src/main/cpp/lib/**/*.a
|
||||
|
||||
# OpenSSL cross-compile scratch (source tree / tarball / build dirs / logs).
|
||||
# The produced libs + headers under app/src/main/cpp/lib/<ABI>/ are tracked.
|
||||
openssl-*/
|
||||
openssl-*.tar.gz
|
||||
openssl_build/
|
||||
openssl_install/
|
||||
openssl_build_*.log
|
||||
Reference in new issue
Block a user