diff options
author | Jack Lloyd <[email protected]> | 2017-07-31 10:25:43 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-07-31 10:25:43 -0400 |
commit | bb30a1e1ffbe839478b4bf04624d841c6d9ecfc3 (patch) | |
tree | f819222abac3c1362830515afc0d027a2e16f573 /src/lib/ffi/ffi.h | |
parent | 274fe964858102c7e0d9077dacb882fa495980e3 (diff) | |
parent | 9864578977e40715854de1b60501f217147b7452 (diff) |
Merge GH #1128 Improve FFI exception safety
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r-- | src/lib/ffi/ffi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index cbe883f8d..e56ad5629 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -134,12 +134,20 @@ doesn't exactly work well either! * To recover the msg, func, and line */ +#define BOTAN_FFI_SUCCESS (0) + +#define BOTAN_FFI_ERROR_INVALID_INPUT (-1) +#define BOTAN_FFI_ERROR_BAD_MAC (-2) + #define BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE (-10) #define BOTAN_FFI_ERROR_EXCEPTION_THROWN (-20) #define BOTAN_FFI_ERROR_BAD_FLAG (-30) #define BOTAN_FFI_ERROR_NULL_POINTER (-31) +#define BOTAN_FFI_ERROR_BAD_PARAMETER (-32) #define BOTAN_FFI_ERROR_NOT_IMPLEMENTED (-40) +#define BOTAN_FFI_ERROR_UNKNOWN_ERROR (-100) + //const char* botan_error_description(int err); /** |