diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2015-10-04 18:30:08 +0200 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2015-10-04 18:40:56 +0200 |
commit | 726e2a4458cdda1ae300785ff545c378474ce3bc (patch) | |
tree | 6d5ebd4e8a96b8c91e7d247a2001834747a72ec9 /src/net/java/sip/communicator | |
parent | 30332994f39111aca5f9cf20343214c6c621cd0d (diff) | |
download | jitsi-726e2a4458cdda1ae300785ff545c378474ce3bc.zip jitsi-726e2a4458cdda1ae300785ff545c378474ce3bc.tar.gz jitsi-726e2a4458cdda1ae300785ff545c378474ce3bc.tar.bz2 |
Obtain available SDES ciphers from libjitsi
Diffstat (limited to 'src/net/java/sip/communicator')
-rw-r--r-- | src/net/java/sip/communicator/plugin/desktoputil/wizard/SecurityPanel.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/java/sip/communicator/plugin/desktoputil/wizard/SecurityPanel.java b/src/net/java/sip/communicator/plugin/desktoputil/wizard/SecurityPanel.java index 87d718e..5a0c61e 100644 --- a/src/net/java/sip/communicator/plugin/desktoputil/wizard/SecurityPanel.java +++ b/src/net/java/sip/communicator/plugin/desktoputil/wizard/SecurityPanel.java @@ -33,8 +33,6 @@ import net.java.sip.communicator.plugin.desktoputil.*; import org.jitsi.service.neomedia.*; -import ch.imvs.sdes4j.srtp.*; - /** * Contains the security settings for SIP media encryption. * @@ -132,13 +130,15 @@ public class SecurityPanel if(ciphers == null) ciphers = defaultCiphers; - //TODO the available ciphers should come from SDesControlImpl - data.add(new Entry(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_80, ciphers - .contains(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_80))); - data.add(new Entry(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_32, ciphers - .contains(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_32))); - data.add(new Entry(SrtpCryptoSuite.F8_128_HMAC_SHA1_80, ciphers - .contains(SrtpCryptoSuite.F8_128_HMAC_SHA1_80))); + + MediaService ms = DesktopUtilActivator.getMediaService(); + SDesControl srtp = + (SDesControl) ms.createSrtpControl(SrtpControlType.SDES); + for (String cipher : srtp.getSupportedCryptoSuites()) + { + data.add(new Entry(cipher, ciphers.contains(cipher))); + } + fireTableDataChanged(); } |