Adds flag to enable AES_GCM from the Java API.

This changeset allows Java API users to enable or disable AES_GCM from the
PeerConnectionFactory.

Bug: chromium:713701
Change-Id: I8798e4eeb6907f8e16a646bfb8a20db510f960c8
Reviewed-on: https://webrtc-review.googlesource.com/89260
Commit-Queue: Benjamin Wright <benwright@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24030}
This commit is contained in:
Benjamin Wright
2018-07-18 10:47:02 -07:00
committed by Commit Bot
parent 92f9c2a087
commit 702f4da4b9
2 changed files with 10 additions and 0 deletions

View File

@ -134,6 +134,7 @@ public class PeerConnectionFactory {
public boolean disableEncryption;
public boolean disableNetworkMonitor;
public boolean enableAes128Sha1_32CryptoCipher;
public boolean enableGcmCryptoSuites;
@CalledByNative("Options")
int getNetworkIgnoreMask() {
@ -154,6 +155,11 @@ public class PeerConnectionFactory {
boolean getEnableAes128Sha1_32CryptoCipher() {
return enableAes128Sha1_32CryptoCipher;
}
@CalledByNative("Options")
boolean getEnableGcmCryptoSuites() {
return enableGcmCryptoSuites;
}
}
public static class Builder {