mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[Crypto] Expose TLSOptions getters
This commit is contained in:
@@ -40,6 +40,42 @@
|
||||
[b]Note:[/b] On the Web platform, TLS verification is always enforced against the CA list of the web browser. This is considered a security feature.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_common_name_override" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Returns the common name (domain name) override specified when creating with [method TLSOptions.client].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_own_certificate" qualifiers="const">
|
||||
<return type="X509Certificate" />
|
||||
<description>
|
||||
Returns the [X509Certificate] specified when creating with [method TLSOptions.server].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_private_key" qualifiers="const">
|
||||
<return type="CryptoKey" />
|
||||
<description>
|
||||
Returns the [CryptoKey] specified when creating with [method TLSOptions.server].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_trusted_ca_chain" qualifiers="const">
|
||||
<return type="X509Certificate" />
|
||||
<description>
|
||||
Returns the CA [X509Certificate] chain specified when creating with [method TLSOptions.client] or [method TLSOptions.client_unsafe].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_server" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if created with [method TLSOptions.server], [code]false[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_unsafe_client" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if created with [method TLSOptions.client_unsafe], [code]false[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="server" qualifiers="static">
|
||||
<return type="TLSOptions" />
|
||||
<param index="0" name="key" type="CryptoKey" />
|
||||
|
||||
Reference in New Issue
Block a user