From 4200cf1b4df3435c8aaf535ca92f8aef35dd23f7 Mon Sep 17 00:00:00 2001 From: Kareem Date: Wed, 8 Dec 2021 17:17:58 -0700 Subject: [PATCH] Fix compiling Iotsafe with C++ by avoiding reserved keyword 'class'. --- wolfcrypt/src/port/iotsafe/iotsafe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/port/iotsafe/iotsafe.c b/wolfcrypt/src/port/iotsafe/iotsafe.c index 7470d40d3..11717691a 100644 --- a/wolfcrypt/src/port/iotsafe/iotsafe.c +++ b/wolfcrypt/src/port/iotsafe/iotsafe.c @@ -188,14 +188,14 @@ static char *search_tlv(const char *haystack, int size, uint8_t tag) return NULL; } -static int iotsafe_cmd_start(char *cmd, byte class, byte ins, byte p1, byte p2) +static int iotsafe_cmd_start(char *cmd, byte cmd_class, byte ins, byte p1, byte p2) { byte lc = 0; char *out; XMEMSET(cmd, 0, IOTSAFE_CMDSIZE_MAX); XSTRNCPY(cmd, "AT+CSIM= 10,\"", IOTSAFE_CMDSIZE_MAX - 1); out = cmd + AT_CSIM_CMD_SIZE; - bytes_to_hex(&class, out, 1); + bytes_to_hex(&cmd_class, out, 1); bytes_to_hex(&ins, out + AT_CMD_INS_POS, 1); bytes_to_hex(&p1, out + AT_CMD_P1_POS, 1); bytes_to_hex(&p2, out + AT_CMD_P2_POS, 1);