mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
libressl: fix version output
LibreSSL defines `OPENSSL_VERSION_NUMBER` as `0x20000000L` for all versions returning `LibreSSL/2.0.0` for any LibreSSL version. This change provides a local OpenSSL_version_num function replacement returning LIBRESSL_VERSION_NUMBER instead. Closes #1029
This commit is contained in:
parent
31dd3bf674
commit
01c8db47aa
@ -119,8 +119,15 @@
|
||||
#define X509_get0_notAfter(x) X509_get_notAfter(x)
|
||||
#define CONST_EXTS /* nope */
|
||||
#define CONST_ASN1_BIT_STRING /* nope */
|
||||
#ifdef LIBRESSL_VERSION_NUMBER
|
||||
static unsigned long OpenSSL_version_num(void)
|
||||
{
|
||||
return LIBRESSL_VERSION_NUMBER;
|
||||
}
|
||||
#else
|
||||
#define OpenSSL_version_num() SSLeay()
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x1000200fL) && /* 1.0.2 or later */ \
|
||||
!defined(LIBRESSL_VERSION_NUMBER)
|
||||
|
Loading…
Reference in New Issue
Block a user