- A error_strerror function() has been added to translate between error codes and their description.
- The error codes have been remapped and combining error codes is now done with a PLUS instead of an OR as error codes used are negative.
- Descriptions to all error codes have been added.
- Generation script for error.c has been created to automatically generate error.c from the available error definitions in the headers.
diff --git a/include/polarssl/md.h b/include/polarssl/md.h
index 57a0d6a..7914d88 100644
--- a/include/polarssl/md.h
+++ b/include/polarssl/md.h
@@ -36,7 +36,7 @@
#define inline _inline
#endif
-#define POLARSSL_ERR_MD_FEATURE_UNAVAILABLE -0x0830
+#define POLARSSL_ERR_MD_FEATURE_UNAVAILABLE -0x5080 /**< The selected feature is not available. */
typedef enum {
POLARSSL_MD_NONE=0,