diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-08-05 00:29:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-08-05 00:29:37 +0200 |
commit | ea6d371e7cd07e24d9eb453ca0d903dfb8599c43 (patch) | |
tree | 0b5be898a28b3b457b5d6b69cfba49ca25b1c0e6 /lib | |
parent | 7efff86639dbc60820d545c8bf41655e9720e4c0 (diff) |
Curl_ossl_version: adapted to detect BoringSSL
This seems to be the way it should work. Right now we can't build with
BoringSSL and try this out properly due to a minor API breakage.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/openssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 03717249f..fa879d974 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2831,11 +2831,15 @@ size_t Curl_ossl_version(char *buffer, size_t size) } return snprintf(buffer, size, "%s/%lx.%lx.%lx%s", +#ifdef OPENSSL_IS_BORINGSSL + "BoringSSL" +#else #ifdef LIBRESSL_VERSION_NUMBER "LibreSSL" #else "OpenSSL" #endif +#endif , (ssleay_value>>28)&0xf, (ssleay_value>>20)&0xff, (ssleay_value>>12)&0xff, |