mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[TLS] Add support for platform-specific CA bundles.
Adds a new OS::get_system_ca_certs method which can be implemented by platforms to retrieve the list of trusted CA certificates using OS specific APIs. The function should return the certificates in PEM format, and is currently implemented for Windows/macOS/LinuxBSD(*)/Android. mbedTLS will fall back to bundled certificates when the OS returns no certificates. (*) LinuxBSD does not have a standardized certificates store location. The current implementation will test for common locations and may return an empty string on some distributions (falling back to the bundled certificates).
This commit is contained in:
parent
4e1d5be9d3
commit
6fd9982358
17 changed files with 180 additions and 13 deletions
|
@ -133,6 +133,8 @@ public:
|
|||
|
||||
virtual Error move_to_trash(const String &p_path) override;
|
||||
|
||||
virtual String get_system_ca_certificates() override;
|
||||
|
||||
OS_LinuxBSD();
|
||||
~OS_LinuxBSD();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue