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

Fix LibreSSL version output in --version #1029

Closed
wants to merge 2 commits into from

Conversation

Sp1l
Copy link
Contributor

@Sp1l Sp1l commented Sep 19, 2016

LibreSSL defines OPENSSL_VERSION_NUMBER as 0x20000000L for all versions (https://github.com/libressl-portable/openbsd/blob/master/src/lib/libcrypto/opensslv.h#L10), returning LibreSSL/2.0.0 for any LibreSSL version.
Copied the SSLeay() function from https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/crypto/cversion.c#L104 using LIBRESSL_VERSION_NUMBER in curl -V output in stead.

$ curl --version
curl 7.50.3 (amd64-portbld-freebsd11.0) libcurl/7.50.3 LibreSSL/2.0.0 zlib/1.2.8 nghttp2/1.14.0

Merge curl/curl master
LibreSSL defines `OPENSSL_VERSION_NUMBER` as `0x20000000L` for all versions (https://github.com/libressl-portable/openbsd/blob/master/src/lib/libcrypto/opensslv.h#L10), returning `LibreSSL/2.0.0` for any LibreSSL version.
Copied the SSLeay() function from https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/crypto/cversion.c#L104 using `LIBRESSL_VERSION_NUMBER` in `curl -V` output in stead.
{{{
$ curl --version
curl 7.50.3 (amd64-portbld-freebsd11.0) libcurl/7.50.3 LibreSSL/2.0.0 zlib/1.2.8 nghttp2/1.14.0
}}}
@bagder bagder closed this in 01c8db4 Sep 19, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant