<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SSLSessionState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SSLSessionState"
  },
  "title" : "SSLSessionState"
}
-->

# SSLSessionState

The flags that represent the state of an SSL session.

```
@frozen enum SSLSessionState
```

## Topics

### Constants

[`kSSLIdle`](/documentation/Security/SSLSessionState/idle)

No I/O has been performed yet.

[`kSSLHandshake`](/documentation/Security/SSLSessionState/handshake)

The SSL handshake is in progress.

[`kSSLConnected`](/documentation/Security/SSLSessionState/connected)

The SSL handshake is complete; the connection is ready for normal I/O.

[`kSSLClosed`](/documentation/Security/SSLSessionState/closed)

The connection closed normally.

[`kSSLAborted`](/documentation/Security/SSLSessionState/aborted)

The connection aborted.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)