Add (placeholder) CCM module
diff --git a/library/error.c b/library/error.c
index 1eac108..8afc092 100644
--- a/library/error.c
+++ b/library/error.c
@@ -53,6 +53,10 @@
#include "polarssl/camellia.h"
#endif
+#if defined(POLARSSL_CCM_C)
+#include "polarssl/ccm.h"
+#endif
+
#if defined(POLARSSL_CIPHER_C)
#include "polarssl/cipher.h"
#endif
@@ -575,6 +579,13 @@
snprintf( buf, buflen, "CAMELLIA - Invalid data input length" );
#endif /* POLARSSL_CAMELLIA_C */
+#if defined(POLARSSL_CCM_C)
+ if( use_ret == -(POLARSSL_ERR_CCM_BAD_INPUT) )
+ snprintf( buf, buflen, "CCM - Bad input parameters to function" );
+ if( use_ret == -(POLARSSL_ERR_CCM_AUTH_FAILED) )
+ snprintf( buf, buflen, "CCM - Authenticated decryption failed" );
+#endif /* POLARSSL_CCM_C */
+
#if defined(POLARSSL_CTR_DRBG_C)
if( use_ret == -(POLARSSL_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED) )
snprintf( buf, buflen, "CTR_DRBG - The entropy source failed" );