mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 04:34:41 +02:00
Fix Visual Studio warning/errors
This commit is contained in:
@@ -1618,6 +1618,12 @@ int VerifyRsaSign(const byte* sig, word32 sigSz,
|
|||||||
SSL_SUCCESS return value on success */
|
SSL_SUCCESS return value on success */
|
||||||
int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
||||||
{
|
{
|
||||||
|
byte havePSK = 0;
|
||||||
|
byte haveAnon = 0;
|
||||||
|
byte haveRSA = 0;
|
||||||
|
byte newSSL = ssl->ctx == NULL;
|
||||||
|
(void) haveAnon; /* Squash unused var warnings */
|
||||||
|
|
||||||
if(!ssl || !ctx || ssl->suites == NULL)
|
if(!ssl || !ctx || ssl->suites == NULL)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
@@ -1627,11 +1633,6 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
byte havePSK = 0;
|
|
||||||
byte haveAnon = 0;
|
|
||||||
byte haveRSA = 0;
|
|
||||||
byte newSSL = ssl->ctx == NULL;
|
|
||||||
(void) haveAnon; /* Squash unused var warnings */
|
|
||||||
|
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
haveRSA = 1;
|
haveRSA = 1;
|
||||||
|
Reference in New Issue
Block a user