From: Daniel Stenberg Date: Mon, 4 Aug 2014 22:29:37 +0000 (+0200) Subject: Curl_ossl_version: adapted to detect BoringSSL X-Git-Tag: curl-7_38_0~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea6d371e7cd07e24d9eb453ca0d903dfb8599c43;p=thirdparty%2Fcurl.git 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. --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 03717249f7..fa879d9749 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2831,10 +2831,14 @@ 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,