Index: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceServer.h |
diff --git a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceServer.h b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceServer.h |
index ff5489cb41297ec2652e1a3bdcb1367429a951a8..5e2d7a1515ffae1775849f93eff2d72b8d58edde 100644 |
--- a/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceServer.h |
+++ b/webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceServer.h |
@@ -12,6 +12,11 @@ |
#import <WebRTC/RTCMacros.h> |
+typedef NS_ENUM(NSUInteger, RTCTlsCertPolicy) { |
+ RTCTlsCertPolicySecure, |
+ RTCTlsCertPolicyInsecureNoCheck |
+}; |
+ |
NS_ASSUME_NONNULL_BEGIN |
RTC_EXPORT |
@@ -26,6 +31,11 @@ RTC_EXPORT |
/** Credential to use if this RTCIceServer object is a TURN server. */ |
@property(nonatomic, readonly, nullable) NSString *credential; |
+/** |
+ * TLS certificate policy to use if this RTCIceServer object is a TURN server. |
+ */ |
+@property(nonatomic, readonly) RTCTlsCertPolicy tlsCertPolicy; |
+ |
- (nonnull instancetype)init NS_UNAVAILABLE; |
/** Convenience initializer for a server with no authentication (e.g. STUN). */ |
@@ -37,7 +47,16 @@ RTC_EXPORT |
*/ |
- (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings |
username:(nullable NSString *)username |
+ credential:(nullable NSString *)credential; |
+ |
+/** |
+ * Initialize an RTCIceServer with its associated URLs, optional username, |
+ * optional credential, and TLS cert policy. |
+ */ |
+- (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings |
+ username:(nullable NSString *)username |
credential:(nullable NSString *)credential |
+ tlsCertPolicy:(RTCTlsCertPolicy)tlsCertPolicy |
NS_DESIGNATED_INITIALIZER; |
@end |