You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright 2018 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import "RTCCryptoOptions.h"
  11. @implementation RTCCryptoOptions
  12. @synthesize srtpEnableGcmCryptoSuites = _srtpEnableGcmCryptoSuites;
  13. @synthesize srtpEnableAes128Sha1_32CryptoCipher = _srtpEnableAes128Sha1_32CryptoCipher;
  14. @synthesize srtpEnableEncryptedRtpHeaderExtensions = _srtpEnableEncryptedRtpHeaderExtensions;
  15. @synthesize sframeRequireFrameEncryption = _sframeRequireFrameEncryption;
  16. - (instancetype)initWithSrtpEnableGcmCryptoSuites:(BOOL)srtpEnableGcmCryptoSuites
  17. srtpEnableAes128Sha1_32CryptoCipher:(BOOL)srtpEnableAes128Sha1_32CryptoCipher
  18. srtpEnableEncryptedRtpHeaderExtensions:(BOOL)srtpEnableEncryptedRtpHeaderExtensions
  19. sframeRequireFrameEncryption:(BOOL)sframeRequireFrameEncryption {
  20. if (self = [super init]) {
  21. _srtpEnableGcmCryptoSuites = srtpEnableGcmCryptoSuites;
  22. _srtpEnableAes128Sha1_32CryptoCipher = srtpEnableAes128Sha1_32CryptoCipher;
  23. _srtpEnableEncryptedRtpHeaderExtensions = srtpEnableEncryptedRtpHeaderExtensions;
  24. _sframeRequireFrameEncryption = sframeRequireFrameEncryption;
  25. }
  26. return self;
  27. }
  28. @end