Put includes in alphabetical order
The library style is to start with the includes corresponding to the
current module and then the rest in alphabetical order. Some modules
have several header files (eg. ssl_internal.h).
The recently added error.h includes did not respect this convention and
this commit restores it. In some cases this is not possible just by
moving the error.h declarations. This commit fixes the pre-existing
order in these instances too.
diff --git a/library/x509_crl.c b/library/x509_crl.c
index 8ff1be8..d1176fc 100644
--- a/library/x509_crl.c
+++ b/library/x509_crl.c
@@ -35,11 +35,10 @@
#include MBEDTLS_CONFIG_FILE
#endif
-#include "mbedtls/error.h"
-
#if defined(MBEDTLS_X509_CRL_PARSE_C)
#include "mbedtls/x509_crl.h"
+#include "mbedtls/error.h"
#include "mbedtls/oid.h"
#include "mbedtls/platform_util.h"