diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-19 03:25:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-19 03:25:18 +0300 |
commit | 5c761256265b1ec48d02c462212d1238ddc0d6e2 (patch) | |
tree | 417d9065e55840bdeac4a7b141c30c5b4e99b75f /include/aesni | |
parent | OFB/CTR decryption is the same as encryption (diff) | |
download | aes-tools-5c761256265b1ec48d02c462212d1238ddc0d6e2.tar.gz aes-tools-5c761256265b1ec48d02c462212d1238ddc0d6e2.zip |
add call stacks to errors
Diffstat (limited to 'include/aesni')
-rw-r--r-- | include/aesni/error.h | 5 |
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; |