Skip to content

Commit

Permalink
ios: enable GCM ciphers by default
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed May 16, 2023
1 parent e38f779 commit 65905d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ios/RCTWebRTC/RCTConvert+WebRTC.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,17 @@ + (RTCIceServer *)RTCIceServer:(id)json {

+ (nonnull RTCConfiguration *)RTCConfiguration:(id)json {
RTCConfiguration *config = [[RTCConfiguration alloc] init];
config.sdpSemantics = RTCSdpSemanticsUnifiedPlan;

// Required for perfect negotiation.
config.enableImplicitRollback = YES;

config.sdpSemantics = RTCSdpSemanticsUnifiedPlan;
// Enable GCM ciphers.
RTCCryptoOptions *cryptoOptions = [[RTCCryptoOptions alloc] initWithSrtpEnableGcmCryptoSuites:YES
srtpEnableAes128Sha1_32CryptoCipher:NO
srtpEnableEncryptedRtpHeaderExtensions:NO
sframeRequireFrameEncryption:NO];
config.cryptoOptions = cryptoOptions;

if (!json) {
return config;
Expand Down

0 comments on commit 65905d0

Please sign in to comment.