0
0
mirror of https://github.com/bmx-routing/bmx7 synced 2025-10-05 15:52:41 +02:00

Detect mbedtls-2.8.0 or mbedtls-3.6.0 based on mbedtls/version.h

This commit is contained in:
Axel Neumann
2024-05-19 07:53:57 +02:00
parent fb45b7d308
commit 9020896f89

View File

@@ -28,9 +28,13 @@
#define MBEDTLS_3_6_0 2360
#define MBEDTLS_MAX 2999
#ifndef CRYPTLIB
#include "mbedtls/version.h"
#ifndef MBEDTLS_VERSION_NUMBER
#define CRYPTLIB MBEDTLS_2_8_0
//#define CRYPTLIB MBEDTLS_3_6_0
#elif (MBEDTLS_VERSION_NUMBER >= 0x01000000 && MBEDTLS_VERSION_NUMBER < 0x03000000)
#define CRYPTLIB MBEDTLS_2_8_0
#elif (MBEDTLS_VERSION_NUMBER >= 0x03000000)
#define CRYPTLIB MBEDTLS_3_6_0
#endif
#define CRYPT_DER_BUF_SZ 16000