Create a simple to use wrapper on top of OpenSSL
I think down the track we should use SChannel for windows and OpenSSL for nix. What do you think? Would be good not to have dependency on OpenSSL when on windows.
Yes, ideally.
But it's incredibly complex. And the documentation is terrible. I personally wouldn't even know how to approach it.
If there's someone with SChannel experience, who could help, that would be great.
Doesn't GO have their own implementation? I think they don't use OpenSSL or SChannel, if I remember correctly they wrote it from scratch (I may be wrong). If they did, maybe that could be ported to V?
They have their own implementation, it uses a lot of Go assembly, so it's not portable.
It's also slower and less tested than OpenSSL.
We should take example from here: https://github.com/sfackler/rust-native-tls
OpenSSL is an option?: https://github.com/vlang/v/issues/307
For anyone familiar with the Ruby/Crystal syntax this could be a good reference for creating OpenSSL bindings. I may take a crack at this myself.
It would be really nice if at some stage we didn't have openssl as a dependency on win.
- windows: Secure Channel
- osx: Security Framework
- linux/others: openssl
I know it would be a lot of tedious work, but it would be nice
Absolutely, I'm all for having as few dependencies as possible.
This was implemented way back by @joe-conigliaro
Sorry I misread the issue, the openssl wrapper is still not implemented.