diff options
author | Andrzej Kurek <andrzej.kurek@arm.com> | 2020-05-19 07:13:26 -0400 |
---|---|---|
committer | Andrzej Kurek <andrzej.kurek@arm.com> | 2020-05-21 10:13:38 -0400 |
commit | 220e61478fedd9330dfbfa33b2811541917422ae (patch) | |
tree | 194c7744df049b079e427017b96e755a547ec775 | |
parent | 13bebd0edb645163affb29e734f7ff29c53081d1 (diff) | |
download | mbed-tls-220e61478fedd9330dfbfa33b2811541917422ae.tar.gz |
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>
-rw-r--r-- | include/mbedtls/x509_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbedtls/x509_internal.h b/include/mbedtls/x509_internal.h index c69c5421c..668d8fba0 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 @@ static int mbedtls_x509_write_sig( unsigned char **p, unsigned char *start, 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 */ |