diff options
author | Marvin W <git@larma.de> | 2022-02-09 23:52:47 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2022-02-09 23:58:54 +0100 |
commit | 28248607f03bfd3e5fc6b29e0528edfd4f04a601 (patch) | |
tree | da8b17bdf223758306fc300e9b98d6b48218ceb7 /xmpp-vala/src | |
parent | 7718def74d46ee29c64d0fd2c0e84f9776012043 (diff) | |
download | dino-28248607f03bfd3e5fc6b29e0528edfd4f04a601.tar.gz dino-28248607f03bfd3e5fc6b29e0528edfd4f04a601.zip |
DTLS: Handle DTLS fingerprint in transport-info before session-accept
Diffstat (limited to 'xmpp-vala/src')
-rw-r--r-- | xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala b/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala index 454a82bb..490cc125 100644 --- a/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala +++ b/xmpp-vala/src/module/xep/0176_jingle_ice_udp/transport_parameters.vala @@ -119,6 +119,13 @@ public abstract class Xmpp.Xep.JingleIceUdp.IceUdpTransportParameters : Jingle.T foreach (StanzaNode candidateNode in node.get_subnodes("candidate")) { remote_candidates.add(Candidate.parse(candidateNode)); } + + StanzaNode? fingerprint_node = node.get_subnode("fingerprint", DTLS_NS_URI); + if (fingerprint_node != null) { + peer_fingerprint = fingerprint_to_bytes(fingerprint_node.get_string_content()); + peer_fp_algo = fingerprint_node.get_attribute("hash"); + peer_setup = fingerprint_node.get_attribute("setup"); + } } public virtual void create_transport_connection(XmppStream stream, Jingle.Content content) { |