Base the config version on MBEDTLS_VERSION_NUMBER

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h
index af2c438..8aa88b0 100644
--- a/include/mbedtls/mbedtls_config.h
+++ b/include/mbedtls/mbedtls_config.h
@@ -24,7 +24,14 @@
  *  limitations under the License.
  */
 
-#define MBEDTLS_CONFIG_VERSION 1
+/**
+ * This is an optional version symbol that enables comatibility handling of
+ * config files.
+ *
+ * It is equal to the #MBEDTLS_VERSION_NUMBER of the mbedtls version that
+ * introduced the config format we want to be compatible with.
+ */
+#define MBEDTLS_CONFIG_VERSION 0x03000000
 
 /**
  * \name SECTION: System support