<!--
{
  "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

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

No I/O has been performed yet.

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

The SSL handshake is in progress.

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

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

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

The connection closed normally.

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

The connection aborted.



---

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)