aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 03:25:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-19 03:25:18 +0300
commit5c761256265b1ec48d02c462212d1238ddc0d6e2 (patch)
tree417d9065e55840bdeac4a7b141c30c5b4e99b75f /include
parentOFB/CTR decryption is the same as encryption (diff)
downloadaes-tools-5c761256265b1ec48d02c462212d1238ddc0d6e2.tar.gz
aes-tools-5c761256265b1ec48d02c462212d1238ddc0d6e2.zip
add call stacks to errors
Diffstat (limited to 'include')
-rw-r--r--include/aesni/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/aesni/error.h b/include/aesni/error.h
index 5aa2fb4..015b16d 100644
--- a/include/aesni/error.h
+++ b/include/aesni/error.h
@@ -72,6 +72,8 @@ static __inline int aesni_is_error(AesNI_StatusCode ec)
*/
const char* aesni_strerror(AesNI_StatusCode ec);
+#define AESNI_MAX_CALL_STACK_LENGTH 32
+
/**
* \brief Stores error details: error code & possibly a few parameters.
*/
@@ -91,6 +93,9 @@ typedef struct
struct { char what[128]; } not_implemented;
}
params;
+
+ void* call_stack[AESNI_MAX_CALL_STACK_LENGTH];
+ size_t call_stack_size;
}
AesNI_ErrorDetails;