Centralize legacy network TLS policy

This commit is contained in:
2026-06-04 17:53:49 +02:00
parent c698de1482
commit 148aceb705
12 changed files with 73 additions and 26 deletions

View File

@@ -0,0 +1,14 @@
#include "platform_api/network_tls_policy.h"
namespace pp::platform {
bool default_disables_network_tls_verification() noexcept
{
#if defined(__ANDROID__)
return true;
#else
return false;
#endif
}
}

View File

@@ -0,0 +1,7 @@
#pragma once
namespace pp::platform {
[[nodiscard]] bool default_disables_network_tls_verification() noexcept;
}