crypto: openssl version detection fix attempt
#include <openssl/opensslv.h>
-#if OPENSSL_VERSION_NUMBER < 0x30000000
+#ifndef OPENSSL_VERSION_PREREQ
#define FLB_CRYPTO_OPENSSL_LEGACY_MODE
+#else
+#if OPENSSL_VERSION_NUMBER < OPENSSL_VERSION_PREREQ(3, 0)
+#define FLB_CRYPTO_OPENSSL_LEGACY_MODE
+#endif
#endif
+
#define FLB_CRYPTO_SUCCESS 0
#define FLB_CRYPTO_BACKEND_ERROR 1
#define FLB_CRYPTO_INVALID_STATE 2
