Enumerations

The following enumerations are available globally.

  • The result of an ALPN negotiation.

    In a system expecting an ALPN negotiation to occur, a wide range of possible things can happen. In the best case scenario it is possible for the server and client to agree on a protocol to speak, in which case this will be .negotiated with the relevant protocol provided as the associated value. However, if for any reason it was not possible to negotiate a protocol, whether because one peer didn’t support ALPN or because there was no protocol overlap, we should fallback to a default choice of some kind.

    Exactly what to do when falling back is the responsibility of a specific implementation.

    See more

    Declaration

    Swift

    public enum ALPNResult : Equatable
  • The result of the SNI parsing. If hostname, then the enum also contains the hostname received in the SNI extension. If fallback, then either we could not parse the SNI extension or it was not there at all.

    See more

    Declaration

    Swift

    public enum SniResult : Equatable
  • Common user events sent by all TLS implementations.

    See more

    Declaration

    Swift

    public enum TLSUserEvent : Equatable