Both structures are defined here: https://github.com/nim-lang/Nim/blob/39230422d02bd41b02378211e8613f702e5b945c/lib/pure/asyncnet.nim#L113 https://github.com/nim-lang/Nim/blob/9b31b12ca57b84a4e85614d251b52dcc5cf6a95b/lib/pure/net.nim#L136
I would like to access sslHandle in an async context, and manually validate self-signed certificates in a TOFU fashion.
I'll create an issue, since the api is also a bit different between net and asyncnet in term of ssl handling.
I need to get a bit familiar with the code and the impact of the modifications before proposing a PR.