Skip to content
Snippets Groups Projects
Commit 7efff866 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_ossl_version: detect and show libressl

LibreSSL is otherwise OpenSSL API compliant (so far)
parent 67920e15
No related branches found
No related tags found
No related merge requests found
......@@ -2830,8 +2830,13 @@ size_t Curl_ossl_version(char *buffer, size_t size)
sub[0]='\0';
}
return snprintf(buffer, size, "OpenSSL/%lx.%lx.%lx%s",
(ssleay_value>>28)&0xf,
return snprintf(buffer, size, "%s/%lx.%lx.%lx%s",
#ifdef LIBRESSL_VERSION_NUMBER
"LibreSSL"
#else
"OpenSSL"
#endif
, (ssleay_value>>28)&0xf,
(ssleay_value>>20)&0xff,
(ssleay_value>>12)&0xff,
sub);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment