cwac-netsecurity icon indicating copy to clipboard operation
cwac-netsecurity copied to clipboard

Add Non-HTTPS TCP/TLS Support

Open omerlh opened this issue 8 years ago • 4 comments

Hey It is a bit unclear, so I thought it is better to ask - doest the library support also TCP/TLS connections?

Thanks, Omer

omerlh avatar Dec 26 '16 07:12 omerlh

Note that this is an issue tracker. It is not a support board. I describe multiple ways of getting support in the project README.

If you are referring to non-HTTPS TCP/TLS connections, I am not sure if native network security configuration applies its rules to those or not, as I have not tried it. This backport does not, as you have to manually request that the configuration be applied, and at the moment I only offer that sort of manual configuration for a couple of HTTP APIs.

I may wind up looking into this more in mid-2017 as part of some of my own work. Otherwise, if you point me to a sample project that is using the 7.0 native network security configuration for something other than HTTPS, I can look into what would be required to support similar scenarios in this library.

commonsguy avatar Dec 26 '16 12:12 commonsguy

Ok, thank you!

omerlh avatar Dec 26 '16 12:12 omerlh

The native security configuration supports non-HTTPS TCP/TLS connections. I've confirmed this in my company's project where we use a custom TCP/TLS protocol.

I'll mostly end up using this lib to support that protocol.

yashasvigirdhar avatar Oct 23 '18 14:10 yashasvigirdhar

@yashasvigirdhar At the moment, I have no plans to try to add support for non-HTTPS in this library, mostly because I have no scenarios for it and no idea how I would convince third-party socket-based code to apply the network security configuration rules.

commonsguy avatar Oct 23 '18 14:10 commonsguy