Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal.c var initialization for Espressif Component Manager #589

Merged
merged 2 commits into from
Sep 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ int IdentifyKey(const byte* in, word32 inSz, int isPrivate, void* heap)
word32 idx;
int ret;
int dynType = isPrivate ? DYNTYPE_PRIVKEY : DYNTYPE_PUBKEY;
WOLFSSH_UNUSED(dynType);

key = (union wolfSSH_key*)WMALLOC(sizeof(union wolfSSH_key), heap, dynType);

Expand Down Expand Up @@ -8323,8 +8324,8 @@ int SendKexInit(WOLFSSH* ssh)
byte* payload = NULL;
char* kexAlgoNames = NULL;
char* keyAlgoNames = NULL;
const byte* algo;
word32 algoCount, idx = 0, payloadSz = 0,
const byte* algo = 0;
word32 algoCount = 0, idx = 0, payloadSz = 0,
kexAlgoNamesSz = 0, keyAlgoNamesSz = 0;
int ret = WS_SUCCESS;

Expand Down Expand Up @@ -9051,8 +9052,8 @@ int SendKexDhReply(WOLFSSH* ssh)
byte kPad = 0;
word32 sigBlockSz = 0;
word32 payloadSz = 0;
byte* output;
word32 idx;
byte* output = 0;
word32 idx = 0;
word32 keyIdx = 0;
byte msgId = MSGID_KEXDH_REPLY;
enum wc_HashType hashId = WC_HASH_TYPE_NONE;
Expand Down
Loading