---
title: CFStream Socket Security Level Constants
framework: corefoundation
role: collectionGroup
role_heading: API Collection
path: corefoundation/cfstream-socket-security-level-constants
---

# CFStream Socket Security Level Constants

Constants for setting the security level of a socket stream.

## Overview

Overview This enumeration defines the preferred constants for setting the security protocol for a socket stream pair when calling CFReadStreamSetProperty(_:_:_:) or CFWriteStreamSetProperty(_:_:_:).

## Topics

### Constants

- [kCFStreamSocketSecurityLevelNone](corefoundation/kcfstreamsocketsecuritylevelnone.md)
- [kCFStreamSocketSecurityLevelSSLv2](corefoundation/kcfstreamsocketsecuritylevelsslv2.md)
- [kCFStreamSocketSecurityLevelSSLv3](corefoundation/kcfstreamsocketsecuritylevelsslv3.md)
- [kCFStreamSocketSecurityLevelTLSv1](corefoundation/kcfstreamsocketsecurityleveltlsv1.md)
- [kCFStreamSocketSecurityLevelNegotiatedSSL](corefoundation/kcfstreamsocketsecuritylevelnegotiatedssl.md)

## See Also

### Setting the Security Protocol

- [CFReadStreamSetProperty(_:_:_:)](corefoundation/cfreadstreamsetproperty(_:_:_:).md)
- [CFWriteStreamSetProperty(_:_:_:)](corefoundation/cfwritestreamsetproperty(_:_:_:).md)
