浏览代码

Publicize and document readonly 'allowsUntrustedSSLCertificates' property. (#398)

Nikita Lutsenko 9 年之前
父节点
当前提交
c5954964ad
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      SocketRocket/SRWebSocket.h

+ 6 - 0
SocketRocket/SRWebSocket.h

@@ -114,6 +114,12 @@ extern NSString *const SRHTTPResponseErrorKey;
  */
  */
 @property (nullable, nonatomic, copy, readonly) NSString *protocol;
 @property (nullable, nonatomic, copy, readonly) NSString *protocol;
 
 
+/**
+ A boolean value indicating whether this socket will allow connection without SSL trust chain evaluation.
+ For DEBUG builds this flag is ignored, and SSL connections are allowed regardless of the certificate trust configuration
+ */
+@property (nonatomic, assign, readonly) BOOL allowsUntrustedSSLCertificates;
+
 ///--------------------------------------
 ///--------------------------------------
 #pragma mark - Constructors
 #pragma mark - Constructors
 ///--------------------------------------
 ///--------------------------------------