aboutsummaryrefslogtreecommitdiff
path: root/standalone/src
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/src')
-rw-r--r--standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp7
-rw-r--r--standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c8
2 files changed, 15 insertions, 0 deletions
diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp
index a7eb6a6..25e1ba4 100644
--- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp
+++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/cryptopp.cpp
@@ -95,6 +95,13 @@ using CryptoPP::Integer;
static jclass provider_class;
static std::unique_ptr<RandomNumberGenerator> rng = std::make_unique<AutoSeededRandomPool>();
+// Fallback to newest
+#if !(defined(ECTESTER_CRYPTOPP_MAJOR) && defined(ECTESTER_CRYPTOPP_MINOR) && defined(ECTESTER_CRYPTOPP_PATCH))
+#define ECTESTER_CRYPTOPP_MAJOR 99
+#define ECTESTER_CRYPTOPP_MINOR 99
+#define ECTESTER_CRYPTOPP_PATCH 99
+#endif
+
JNIEXPORT jobject JNICALL Java_cz_crcs_ectester_standalone_libs_CryptoppLib_createProvider(JNIEnv *env, jobject self) {
/* Create the custom provider. */
diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c
index e017f4d..8b7fbbb 100644
--- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c
+++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/mbedtls.c
@@ -21,6 +21,14 @@ static mbedtls_entropy_context fixed_entropy;
static jclass provider_class;
+// Fallback to newest
+#if !(defined(ECTESTER_MBEDTLS_MAJOR) && defined(ECTESTER_MBEDTLS_MINOR) && defined(ECTESTER_MBEDTLS_PATCH))
+#define ECTESTER_MBEDTLS_MAJOR 99
+#define ECTESTER_MBEDTLS_MINOR 99
+#define ECTESTER_MBEDTLS_PATCH 99
+#endif
+
+
#if VERSION_LT(MBEDTLS, 3, 0, 0)
#define MBEDTLS_PRIVATE(member) member
#else