mirror of
https://github.com/curl/curl.git
synced 2025-09-24 13:06:50 +03:00
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.
This commit is contained in:
parent
7efff86639
commit
ea6d371e7c
|
@ -2831,10 +2831,14 @@ size_t Curl_ossl_version(char *buffer, size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
return snprintf(buffer, size, "%s/%lx.%lx.%lx%s",
|
return snprintf(buffer, size, "%s/%lx.%lx.%lx%s",
|
||||||
|
#ifdef OPENSSL_IS_BORINGSSL
|
||||||
|
"BoringSSL"
|
||||||
|
#else
|
||||||
#ifdef LIBRESSL_VERSION_NUMBER
|
#ifdef LIBRESSL_VERSION_NUMBER
|
||||||
"LibreSSL"
|
"LibreSSL"
|
||||||
#else
|
#else
|
||||||
"OpenSSL"
|
"OpenSSL"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
, (ssleay_value>>28)&0xf,
|
, (ssleay_value>>28)&0xf,
|
||||||
(ssleay_value>>20)&0xff,
|
(ssleay_value>>20)&0xff,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user