This value controls which security protocol an NSStream uses to transfer the data on the stream, from nothing, to a specific version of SSL or TLS, or best possible.
Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols designed to provide communication security over streams.
| Member Name | Description |
|---|---|
| NegotiatedSsl | Indicates that the two parties should negotiate a protocol, and it should use the most secure socket protocol available between the client and the server. |
| None | Do not use any security protocol. |
| SslV2 | Require the use of SSLv2. |
| SslV3 | Require the use of SSLv3. |
| TlsV1 | Require the use of TLSv1. |
| Unknown | The protocol is not known (can only happen if you build using an old SDK and run on a new device, and you have set the setting to "negotiated" and then you read the value back). |