Is it possible to pass in custom configuration options to an instance of NWProtocolFramerImplementation that it can use while it is handshaking (i.e. before calling .markReady())? I can’t see any way to do it, currently.
For example, I have written a framer to handle a STARTTLS handshake for SMTP. Before calling prependApplicationProtocol to start TLS, I set up some custom NWProtocolTLS.Options. It works, but only if I hard-code those custom TLS options. If, for example, I wanted to be able to allow the user to select a minimum TLS version, I don’t see a clean way currently to pass in that custom configuration to my instance of NWProtocolFramerImplementation.
Any thoughts? Or should I file an enhancement request?
Similar problem as found here: https://developer.apple.com/forums/thread/130498
Thank you!
Jonathan
For example, I have written a framer to handle a STARTTLS handshake for SMTP. Before calling prependApplicationProtocol to start TLS, I set up some custom NWProtocolTLS.Options. It works, but only if I hard-code those custom TLS options. If, for example, I wanted to be able to allow the user to select a minimum TLS version, I don’t see a clean way currently to pass in that custom configuration to my instance of NWProtocolFramerImplementation.
Any thoughts? Or should I file an enhancement request?
Similar problem as found here: https://developer.apple.com/forums/thread/130498
Thank you!
Jonathan