Merge pull request #589 from gojimmypi/init-vars

pull/595/head
John Safranek 2023-09-24 13:52:44 -07:00 committed by GitHub
commit e0ba0cb728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -873,6 +873,7 @@ int IdentifyKey(const byte* in, word32 inSz, int isPrivate, void* heap)
word32 idx; word32 idx;
int ret; int ret;
int dynType = isPrivate ? DYNTYPE_PRIVKEY : DYNTYPE_PUBKEY; int dynType = isPrivate ? DYNTYPE_PRIVKEY : DYNTYPE_PUBKEY;
WOLFSSH_UNUSED(dynType);
key = (union wolfSSH_key*)WMALLOC(sizeof(union wolfSSH_key), heap, dynType); key = (union wolfSSH_key*)WMALLOC(sizeof(union wolfSSH_key), heap, dynType);
@ -8326,8 +8327,8 @@ int SendKexInit(WOLFSSH* ssh)
byte* payload = NULL; byte* payload = NULL;
char* kexAlgoNames = NULL; char* kexAlgoNames = NULL;
char* keyAlgoNames = NULL; char* keyAlgoNames = NULL;
const byte* algo; const byte* algo = 0;
word32 algoCount, idx = 0, payloadSz = 0, word32 algoCount = 0, idx = 0, payloadSz = 0,
kexAlgoNamesSz = 0, keyAlgoNamesSz = 0; kexAlgoNamesSz = 0, keyAlgoNamesSz = 0;
int ret = WS_SUCCESS; int ret = WS_SUCCESS;
@ -9054,8 +9055,8 @@ int SendKexDhReply(WOLFSSH* ssh)
byte kPad = 0; byte kPad = 0;
word32 sigBlockSz = 0; word32 sigBlockSz = 0;
word32 payloadSz = 0; word32 payloadSz = 0;
byte* output; byte* output = 0;
word32 idx; word32 idx = 0;
word32 keyIdx = 0; word32 keyIdx = 0;
byte msgId = MSGID_KEXDH_REPLY; byte msgId = MSGID_KEXDH_REPLY;
enum wc_HashType hashId = WC_HASH_TYPE_NONE; enum wc_HashType hashId = WC_HASH_TYPE_NONE;