Add a x509 prerequisite in x509_internal.h
Lack of this requirement caused warning when compiling the
x509 test suites with config-thread.h from example configs,
resulting in an error when running from test-ref-configs.pl.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/include/mbedtls/x509_internal.h b/include/mbedtls/x509_internal.h
index c69c542..668d8fb 100644
--- a/include/mbedtls/x509_internal.h
+++ b/include/mbedtls/x509_internal.h
@@ -25,6 +25,8 @@
#ifndef MBEDTLS_X509_INTERNAL_H
#define MBEDTLS_X509_INTERNAL_H
+#if defined(MBEDTLS_X509_USE_C)
+
#include "x509.h"
#include "threading.h"
@@ -118,4 +120,5 @@
const char *oid, size_t oid_len,
unsigned char *sig, size_t size );
#endif /* MBEDTLS_X509_CREATE_C */
+#endif /* MBEDTLS_X509_USE_C */
#endif /* MBEDTLS_X509_INTERNAL_H */