- 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/tests/Makefile b/tests/Makefile
index 74c1a32..84b961e 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -9,15 +9,16 @@
OFLAGS = -O
LDFLAGS += -L../library -lpolarssl
-APPS = test_suite_aes test_suite_arc4 \
- test_suite_base64 test_suite_camellia \
- test_suite_des test_suite_dhm \
- test_suite_hmac_shax test_suite_mdx \
- test_suite_mpi test_suite_rsa \
- test_suite_shax test_suite_x509parse\
- test_suite_xtea test_suite_debug \
- test_suite_version test_suite_md \
- test_suite_cipher test_suite_pkcs1_v21
+APPS = test_suite_aes test_suite_arc4 \
+ test_suite_base64 test_suite_camellia \
+ test_suite_cipher test_suite_debug \
+ test_suite_des test_suite_dhm \
+ test_suite_error test_suite_hmac_shax \
+ test_suite_md test_suite_mdx \
+ test_suite_mpi test_suite_pkcs1_v21 \
+ test_suite_rsa test_suite_shax \
+ test_suite_x509parse test_suite_xtea \
+ test_suite_version
.SILENT:
@@ -55,6 +56,10 @@
echo " CC $@.c"
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
+test_suite_error: test_suite_error.c ../library/libpolarssl.a
+ echo " CC $@.c"
+ $(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@
+
test_suite_hmac_shax: test_suite_hmac_shax.c ../library/libpolarssl.a
echo " CC $@.c"
$(CC) $(CFLAGS) $(OFLAGS) $@.c $(LDFLAGS) -o $@