aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2015-10-04 18:30:08 +0200
committerIngo Bauersachs <ingo@jitsi.org>2015-10-04 18:40:56 +0200
commit726e2a4458cdda1ae300785ff545c378474ce3bc (patch)
tree6d5ebd4e8a96b8c91e7d247a2001834747a72ec9
parent30332994f39111aca5f9cf20343214c6c621cd0d (diff)
downloadjitsi-726e2a4458cdda1ae300785ff545c378474ce3bc.zip
jitsi-726e2a4458cdda1ae300785ff545c378474ce3bc.tar.gz
jitsi-726e2a4458cdda1ae300785ff545c378474ce3bc.tar.bz2
Obtain available SDES ciphers from libjitsi
-rw-r--r--src/net/java/sip/communicator/plugin/desktoputil/wizard/SecurityPanel.java18
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();
}