You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
523 B

  1. --- a/include/common/openssl-compat.h
  2. +++ b/include/common/openssl-compat.h
  3. @@ -217,7 +217,8 @@ static inline int EVP_PKEY_base_id(EVP_PKEY *pkey)
  4. #define TLSEXT_signature_ecdsa 3
  5. #endif
  6. -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (LIBRESSL_VERSION_NUMBER < 0x20700000L)
  7. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
  8. + (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x20700000L))
  9. #define X509_getm_notBefore X509_get_notBefore
  10. #define X509_getm_notAfter X509_get_notAfter
  11. #endif