diff options
author | fiaxh <git@lightrise.org> | 2021-04-08 12:07:04 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-09 22:23:13 +0200 |
commit | 8d1c6c29be7018c74ec3f8ea05f5849eac5b4069 (patch) | |
tree | dde27c13cd0ae8af31b9194b3450c58d4fe9cf02 /xmpp-vala/src/module/xep/0167_jingle_rtp | |
parent | 3454201e5a3da058ccbef0bbaf467599912a8c38 (diff) | |
download | dino-8d1c6c29be7018c74ec3f8ea05f5849eac5b4069.tar.gz dino-8d1c6c29be7018c74ec3f8ea05f5849eac5b4069.zip |
Display+store call encryption info
Diffstat (limited to 'xmpp-vala/src/module/xep/0167_jingle_rtp')
-rw-r--r-- | xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala | 3 | ||||
-rw-r--r-- | xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala b/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala index ff3d31f4..ac65f88c 100644 --- a/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala +++ b/xmpp-vala/src/module/xep/0167_jingle_rtp/content_parameters.vala @@ -116,6 +116,9 @@ public class Xmpp.Xep.JingleRtp.Parameters : Jingle.ContentParameters, Object { remote_crypto = null; local_crypto = null; } + if (remote_crypto != null && local_crypto != null) { + content.encryption = new Xmpp.Xep.Jingle.ContentEncryption() { encryption_ns = "", encryption_name = "SRTP", our_key=local_crypto.key, peer_key=remote_crypto.key }; + } this.stream = parent.create_stream(content); rtp_datagram.datagram_received.connect(this.stream.on_recv_rtp_data); diff --git a/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala b/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala index 730ce9f8..adae11f5 100644 --- a/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala +++ b/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala @@ -1,5 +1,7 @@ public abstract class Xmpp.Xep.JingleRtp.Stream : Object { + public Jingle.Content content { get; protected set; } + public string name { get { return content.content_name; }} |