Added API to Objective-C PeerConnectionFactoryOptions to enable GCM Ciphers.
This changeset adds the ability for API users to enable or disable GCM Cipher suites from objective-c. Bug: chromium:713701 Change-Id: I0ac7b60f55dd56bebbcfb315a542ef4843099802 Reviewed-on: https://webrtc-review.googlesource.com/89263 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Benjamin Wright <benwright@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24028}
This commit is contained in:

committed by
Commit Bot

parent
9e6d20e7f1
commit
d0136b8afb
@ -35,6 +35,7 @@ void setNetworkBit(webrtc::PeerConnectionFactoryInterface::Options* options,
|
|||||||
@synthesize ignoreWiFiNetworkAdapter = _ignoreWiFiNetworkAdapter;
|
@synthesize ignoreWiFiNetworkAdapter = _ignoreWiFiNetworkAdapter;
|
||||||
@synthesize ignoreEthernetNetworkAdapter = _ignoreEthernetNetworkAdapter;
|
@synthesize ignoreEthernetNetworkAdapter = _ignoreEthernetNetworkAdapter;
|
||||||
@synthesize enableAes128Sha1_32CryptoCipher = _enableAes128Sha1_32CryptoCipher;
|
@synthesize enableAes128Sha1_32CryptoCipher = _enableAes128Sha1_32CryptoCipher;
|
||||||
|
@synthesize enableGcmCryptoSuites = _enableGcmCryptoSuites;
|
||||||
|
|
||||||
- (instancetype)init {
|
- (instancetype)init {
|
||||||
return [super init];
|
return [super init];
|
||||||
@ -52,6 +53,7 @@ void setNetworkBit(webrtc::PeerConnectionFactoryInterface::Options* options,
|
|||||||
setNetworkBit(&options, rtc::ADAPTER_TYPE_ETHERNET, self.ignoreEthernetNetworkAdapter);
|
setNetworkBit(&options, rtc::ADAPTER_TYPE_ETHERNET, self.ignoreEthernetNetworkAdapter);
|
||||||
|
|
||||||
options.crypto_options.enable_aes128_sha1_32_crypto_cipher = self.enableAes128Sha1_32CryptoCipher;
|
options.crypto_options.enable_aes128_sha1_32_crypto_cipher = self.enableAes128Sha1_32CryptoCipher;
|
||||||
|
options.crypto_options.enable_gcm_crypto_suites = self.enableGcmCryptoSuites;
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,8 @@ RTC_EXPORT
|
|||||||
|
|
||||||
@property(nonatomic, assign) BOOL enableAes128Sha1_32CryptoCipher;
|
@property(nonatomic, assign) BOOL enableAes128Sha1_32CryptoCipher;
|
||||||
|
|
||||||
|
@property(nonatomic, assign) BOOL enableGcmCryptoSuites;
|
||||||
|
|
||||||
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user