Skip to content

Fix LibreSSL version output in --version - #1029

Closed
Sp1l wants to merge 2 commits into
curl:masterfrom
Sp1l:libressl_version
Closed

Sp1l wants to merge 2 commits into
curl:masterfrom
Sp1l:libressl_version

Conversation

@Sp1l

@Sp1l Sp1l commented Sep 19, 2016

Copy link
Copy Markdown
Contributor

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.

1 participant