Skip to content

how to add cipher suites before connection #1066

Description

@yzhangCrestron

Question

I am trying to add more cipher suites before connection. I changed the TCPTransport class by adding the following code to the func connect(url: URL, timeout: Double = 10, certificatePinning: CertificatePinning? = nil)

sec_protocol_options_append_tls_ciphersuite(tlsOpts.securityProtocolOptions, tls_ciphersuite_t.ECDHE_ECDSA_WITH_AES_128_CBC_SHA256)

But when I checked the client hello packet using Wireshark. This cipher suite was not there. They still use default cipher suites without adding this new one.

Thanks.

Environment:

  • OS/Version: MacOS 15.6.1
  • Starscream Version 4.0.4
  • Xcode version 16.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions