From 28248607f03bfd3e5fc6b29e0528edfd4f04a601 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 9 Feb 2022 23:52:47 +0100 Subject: DTLS: Handle DTLS fingerprint in transport-info before session-accept --- .../src/module/xep/0176_jingle_ice_udp/transport_parameters.vala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmpp-vala/src/module') 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) { -- cgit v1.2.3-70-g09d2