oxidize: Initial corrode translation

Includes changes to the original C code needed for `corrode` to accept
the input.

There were a lot of problems with APDU fields. These need to be copied
into the translated Rust code and fixed up manually.

Code otherwise contains the raw `corrode` output.
This commit is contained in:
Tony Arcieri
2019-08-10 10:48:02 -07:00
parent a226b56696
commit 45ba342f57
11 changed files with 7670 additions and 179 deletions
+1 -3
View File
@@ -71,7 +71,7 @@ extern "C"
// is CB_BUF_MAX - 9
#define CB_OBJ_MAX_NEO (CB_BUF_MAX_NEO - 9)
#define CB_OBJ_MAX_YK4 (CB_BUF_MAX_YK4 - 9)
#define CB_OBJ_MAX CB_OBJ_MAX_YK4
#define CB_OBJ_MAX 3063
#define CB_BUF_MAX_NEO 2048
#define CB_BUF_MAX_YK4 3072
@@ -236,8 +236,6 @@ typedef enum _yc_log_level_t {
YC_LOG_LEVEL_DEBUG
} yc_log_level_t;
void yc_log_event(uint32_t id, yc_log_level_t level, const char *sz_format, ...);
#ifdef _WIN32
#include <windows.h>
#define yc_memzero SecureZeroMemory