diff options
author | Marvin W <git@larma.de> | 2021-03-23 15:05:50 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2021-03-23 15:11:00 +0100 |
commit | b393d4160182873ea2acd9fbc6421f7e1a3adb9e (patch) | |
tree | 77ac2fe22b0750e7ea443822cf71bc937a16dd16 /xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala | |
parent | 9fed5ea8650d6e7735fca4b3fe2cf4fc29f81c33 (diff) | |
download | dino-b393d4160182873ea2acd9fbc6421f7e1a3adb9e.tar.gz dino-b393d4160182873ea2acd9fbc6421f7e1a3adb9e.zip |
Add support for SRTP
Diffstat (limited to 'xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala')
-rw-r--r-- | xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala | 14 |
1 files changed, 14 insertions, 0 deletions
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 62d85dec..2fc29291 100644 --- a/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala +++ b/xmpp-vala/src/module/xep/0167_jingle_rtp/stream.vala @@ -17,6 +17,20 @@ public abstract class Xmpp.Xep.JingleRtp.Stream : Object { } return null; }} + public JingleRtp.Crypto? local_crypto { get { + var content_params = content.content_params; + if (content_params is Parameters) { + return ((Parameters)content_params).local_crypto; + } + return null; + }} + public JingleRtp.Crypto? remote_crypto { get { + var content_params = content.content_params; + if (content_params is Parameters) { + return ((Parameters)content_params).remote_crypto; + } + return null; + }} public bool sending { get { return content.session.senders_include_us(content.senders); }} |