Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibreSSL support #6

Closed
vaygr opened this issue Sep 18, 2017 · 5 comments
Closed

LibreSSL support #6

vaygr opened this issue Sep 18, 2017 · 5 comments

Comments

@vaygr
Copy link
Contributor

vaygr commented Sep 18, 2017

It'd be great to be able to build tls-scan with LibreSSL as it'll improve portability by a lot.

There are several things here:

  1. There's no ASN1_TIME_diff() in LibreSSL. Some simply backport that function for compatibility.
  2. For COMP_METHOD support it needs to have an additional <openssl/comp.h> include, but there's no SSL_COMP_free_compression_methods() though.
  3. SSL_get_server_tmp_key() and X509_check_host() didn't exist in older versions, but as of 2.5.5 they're there.
  4. SSLv2_client_method() was dropped long time ago as an insecure and is not present in any version whatsoever.

The most of these can be resolved by ifdef's I think.

@prbinu
Copy link
Owner

prbinu commented Sep 19, 2017

Thank you Vlad for the support request.
The primary reason to use PeterMosmans openssl is to use deprecated/insecure ciphers and SSL versions for security scanning. New TLS libraries (e.g. golang) implementation doesn't support insecure cipher/ssl versions, and I believe the same with LibreSSL. Correct me if I'm wrong.

For portability, we tested it on MacOS and Linux natively and have Docker solution as well. Though not tested, i expect this tool to be easily be built on any platform supported by openssl.

@vaygr
Copy link
Contributor Author

vaygr commented Sep 19, 2017

Ah, right, I suspected it was the reason. Thanks.

So for packaging for our distro, I can simply re-use that OpenSSL tarball, and as I tested zlib and libevent system libraries work just fine and can be linked against.

@prbinu
Copy link
Owner

prbinu commented Sep 19, 2017

Which distro are you referring?

@vaygr
Copy link
Contributor Author

vaygr commented Sep 19, 2017

It's pretty specific, Source Mage.

@prbinu
Copy link
Owner

prbinu commented Sep 19, 2017

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants