v icon indicating copy to clipboard operation
v copied to clipboard

Create a simple to use wrapper on top of OpenSSL

Open medvednikov opened this issue 7 years ago • 11 comments

medvednikov avatar Jun 22 '19 10:06 medvednikov

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.

joe-conigliaro avatar Jun 22 '19 10:06 joe-conigliaro

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.

medvednikov avatar Jun 22 '19 10:06 medvednikov

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?

joe-conigliaro avatar Jun 22 '19 10:06 joe-conigliaro

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.

medvednikov avatar Jun 22 '19 10:06 medvednikov

We should take example from here: https://github.com/sfackler/rust-native-tls

joe-conigliaro avatar Jun 22 '19 10:06 joe-conigliaro

OpenSSL is an option?: https://github.com/vlang/v/issues/307

Bowero avatar Jun 26 '19 20:06 Bowero

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.

watzon avatar Jul 13 '19 04:07 watzon

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

joe-conigliaro avatar Jul 13 '19 05:07 joe-conigliaro

Absolutely, I'm all for having as few dependencies as possible.

medvednikov avatar Jul 13 '19 15:07 medvednikov

This was implemented way back by @joe-conigliaro

medvednikov avatar May 31 '20 11:05 medvednikov

Sorry I misread the issue, the openssl wrapper is still not implemented.

medvednikov avatar May 31 '20 11:05 medvednikov