TlsSession

class TlsSession

This class represents a TLS session. It manages the context for the session, which is used for input as well as output streams.

  • The state of the TLS session.

    Declaration

    Swift

    var state: SSLSessionState { get }
  • This function is called when there is space available for the handshake. When called it will initiate a TLS handshake or send additional data in order to complete the handshake (it is a two-way process).

    Declaration

    Swift

    func spaceAvailableForHandshake()
  • This function is called when there are bytes available for the handshake.

    Declaration

    Swift

    func bytesAvailableForHandshake()