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
11#import "RTCCryptoOptions.h"
12
13@implementation RTC_OBJC_TYPE (RTCCryptoOptions)
14
15@synthesize srtpEnableGcmCryptoSuites = _srtpEnableGcmCryptoSuites;
16@synthesize srtpEnableAes128Sha1_32CryptoCipher = _srtpEnableAes128Sha1_32CryptoCipher;
17@synthesize srtpEnableEncryptedRtpHeaderExtensions = _srtpEnableEncryptedRtpHeaderExtensions;
18@synthesize sframeRequireFrameEncryption = _sframeRequireFrameEncryption;
19
20- (instancetype)initWithSrtpEnableGcmCryptoSuites:(BOOL)srtpEnableGcmCryptoSuites
21              srtpEnableAes128Sha1_32CryptoCipher:(BOOL)srtpEnableAes128Sha1_32CryptoCipher
22           srtpEnableEncryptedRtpHeaderExtensions:(BOOL)srtpEnableEncryptedRtpHeaderExtensions
23                     sframeRequireFrameEncryption:(BOOL)sframeRequireFrameEncryption {
24  if (self = [super init]) {
25    _srtpEnableGcmCryptoSuites = srtpEnableGcmCryptoSuites;
26    _srtpEnableAes128Sha1_32CryptoCipher = srtpEnableAes128Sha1_32CryptoCipher;
27    _srtpEnableEncryptedRtpHeaderExtensions = srtpEnableEncryptedRtpHeaderExtensions;
28    _sframeRequireFrameEncryption = sframeRequireFrameEncryption;
29  }
30  return self;
31}
32
33@end
34