mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Fix variable declaration mid-code.
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
#include <wolfssl/wolfcrypt/types.h>
|
||||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||||
|
|
||||||
/* xctime */
|
/* xctime */
|
||||||
@@ -2159,10 +2160,13 @@ static int SetupKeys(const byte* input, int* sslBytes, SnifferSession* session,
|
|||||||
DerBuffer* keyBuf;
|
DerBuffer* keyBuf;
|
||||||
#ifdef HAVE_ECC
|
#ifdef HAVE_ECC
|
||||||
int useEccCurveId = ECC_CURVE_DEF;
|
int useEccCurveId = ECC_CURVE_DEF;
|
||||||
|
#endif
|
||||||
|
int devId = INVALID_DEVID;
|
||||||
|
|
||||||
|
#ifdef HAVE_ECC
|
||||||
if (ksInfo && ksInfo->curve_id != 0)
|
if (ksInfo && ksInfo->curve_id != 0)
|
||||||
useEccCurveId = ksInfo->curve_id;
|
useEccCurveId = ksInfo->curve_id;
|
||||||
#endif
|
#endif
|
||||||
int devId = INVALID_DEVID;
|
|
||||||
#ifdef WOLF_CRYPTO_CB
|
#ifdef WOLF_CRYPTO_CB
|
||||||
devId = CryptoDeviceId;
|
devId = CryptoDeviceId;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user