openssl: assume OPENSSL_VERSION_NUMBER

It's defined in all supported OpenSSL versions and forks.

Also formatting in `md4.c`.

Closes #18388
This commit is contained in:
Viktor Szakats 2025-08-24 00:36:52 +02:00
parent d65436d9a0
commit ca6d6dcb20
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 1 additions and 2 deletions

View file

@ -41,7 +41,6 @@
#ifdef USE_OPENSSL
# include <openssl/opensslv.h>
# if (!defined(LIBRESSL_VERSION_NUMBER) && \
defined(OPENSSL_VERSION_NUMBER) && \
OPENSSL_VERSION_NUMBER >= 0x10101000L) || \
(defined(LIBRESSL_VERSION_NUMBER) && \
LIBRESSL_VERSION_NUMBER >= 0x3080000fL)

View file

@ -34,7 +34,7 @@
#ifdef USE_OPENSSL
#include <openssl/opensslv.h>
#if (OPENSSL_VERSION_NUMBER >= 0x30000000L) && !defined(USE_AMISSL)
#if OPENSSL_VERSION_NUMBER >= 0x30000000L && !defined(USE_AMISSL)
/* OpenSSL 3.0.0 marks the MD4 functions as deprecated */
#define OPENSSL_NO_MD4
#else