summaryrefslogtreecommitdiff
path: root/doc/classes/PacketPeerDTLS.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/PacketPeerDTLS.xml')
-rw-r--r--doc/classes/PacketPeerDTLS.xml25
1 files changed, 9 insertions, 16 deletions
diff --git a/doc/classes/PacketPeerDTLS.xml b/doc/classes/PacketPeerDTLS.xml
index 19ebb9d81e..b05743fb5a 100644
--- a/doc/classes/PacketPeerDTLS.xml
+++ b/doc/classes/PacketPeerDTLS.xml
@@ -5,42 +5,35 @@
</brief_description>
<description>
This class represents a DTLS peer connection. It can be used to connect to a DTLS server, and is returned by [method DTLSServer.take_connection].
+ [b]Warning:[/b] SSL/TLS certificate revocation and certificate pinning are currently not supported. Revoked certificates are accepted as long as they are otherwise valid. If this is a concern, you may want to use automatically managed certificates with a short validity period.
</description>
<tutorials>
</tutorials>
<methods>
<method name="connect_to_peer">
- <return type="int" enum="Error">
- </return>
- <argument index="0" name="packet_peer" type="PacketPeerUDP">
- </argument>
- <argument index="1" name="validate_certs" type="bool" default="true">
- </argument>
- <argument index="2" name="for_hostname" type="String" default="&quot;&quot;">
- </argument>
- <argument index="3" name="valid_certificate" type="X509Certificate" default="null">
- </argument>
+ <return type="int" enum="Error" />
+ <argument index="0" name="packet_peer" type="PacketPeerUDP" />
+ <argument index="1" name="validate_certs" type="bool" default="true" />
+ <argument index="2" name="for_hostname" type="String" default="&quot;&quot;" />
+ <argument index="3" name="valid_certificate" type="X509Certificate" default="null" />
<description>
Connects a [code]peer[/code] beginning the DTLS handshake using the underlying [PacketPeerUDP] which must be connected (see [method PacketPeerUDP.connect_to_host]). If [code]validate_certs[/code] is [code]true[/code], [PacketPeerDTLS] will validate that the certificate presented by the remote peer and match it with the [code]for_hostname[/code] argument. You can specify a custom [X509Certificate] to use for validation via the [code]valid_certificate[/code] argument.
</description>
</method>
<method name="disconnect_from_peer">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Disconnects this peer, terminating the DTLS session.
</description>
</method>
<method name="get_status" qualifiers="const">
- <return type="int" enum="PacketPeerDTLS.Status">
- </return>
+ <return type="int" enum="PacketPeerDTLS.Status" />
<description>
Returns the status of the connection. See [enum Status] for values.
</description>
</method>
<method name="poll">
- <return type="void">
- </return>
+ <return type="void" />
<description>
Poll the connection to check for incoming packets. Call this frequently to update the status and keep the connection working.
</description>