]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Hide unused variables when OpenSSL >= 3
authorNick Porter <nick@portercomputing.co.uk>
Thu, 23 Jan 2025 10:38:08 +0000 (10:38 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 23 Jan 2025 10:38:08 +0000 (10:38 +0000)
src/modules/rlm_otp/otp_mppe.c
src/modules/rlm_otp/otp_mppe.h

index 932e44abe91d172570320cc5c4df822b57a1210d..7fddd1f4100b0e6f4d797c63a91f00ab4b17102f 100644 (file)
@@ -30,13 +30,13 @@ USES_APPLE_DEPRECATED_API   /* OpenSSL API has been deprecated by Apple */
 
 #include "extern.h"
 #include "otp.h"
-#include "otp_mppe.h"
 
 #include <openssl/des.h>
 #include <openssl/md4.h>
 #include <openssl/md5.h>
 #include <openssl/sha.h>
 
+#include "otp_mppe.h"
 #include <string.h>
 
 #if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x30000000L)
index d1da9afa87ee202328b3cfb533b9aef45085ed8f..81ce10be6c26e266c72156d35d8c4627f72cb0c7 100644 (file)
@@ -34,6 +34,7 @@ RCSIDH(otp_mppe_h, "$Id$")
 #define MPPE_ENC_TYPES_RC4_128    "0x00000004"
 #define MPPE_ENC_TYPES_RC4_40_128 "0x00000006"
 
+#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x30000000L)
 /* Translate the above into something easily usable. */
 static char const *otp_mppe_policy[3] = {
   MPPE_ENC_POL_ENCRYPTION_FORBIDDEN,
@@ -44,5 +45,6 @@ static char const *otp_mppe_types[3] = {
   MPPE_ENC_TYPES_RC4_40,
   MPPE_ENC_TYPES_RC4_128,
   MPPE_ENC_TYPES_RC4_40_128 };
+#endif
 
 #endif /* OTP_MPPE_H */