Эх сурвалжийг харах

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

Nikita Lutsenko 9 жил өмнө
parent
commit
c5954964ad

+ 6 - 0
SocketRocket/SRWebSocket.h

@@ -114,6 +114,12 @@ extern NSString *const SRHTTPResponseErrorKey;
  */
 @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
 ///--------------------------------------