Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1382)

Unified Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceServer.h

Issue 2664233002: Implement new PeerConnection certificate policy API in ObjC API (Closed)
Patch Set: Fix bug where username/credential was not forwarded in constructor. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d4c07b4fb0561a76b9ce4eaa3d97619382db5f12 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,10 @@ 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.
daniela-webrtc 2017/02/01 14:26:53 Move this to the next line to formulate the commen
hnsl1 2017/02/01 16:11:47 Done.
+ */
+@property(nonatomic, readonly) RTCTlsCertPolicy tlsCertPolicy;
+
- (nonnull instancetype)init NS_UNAVAILABLE;
/** Convenience initializer for a server with no authentication (e.g. STUN). */
@@ -35,9 +44,18 @@ RTC_EXPORT
* Initialize an RTCIceServer with its associated URLs, optional username,
* optional credential, and credentialType.
*/
-- (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings
- username:(nullable NSString *)username
- credential:(nullable NSString *)credential
+- (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

Powered by Google App Engine
This is Rietveld 408576698