mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
mdk portability, fixed declaration after executing statements
This commit is contained in:
@@ -1565,15 +1565,15 @@ void FreeX509(WOLFSSL_X509* x509)
|
|||||||
wolfSSL_Set_SSL_CTX */
|
wolfSSL_Set_SSL_CTX */
|
||||||
int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
|
||||||
{
|
{
|
||||||
if(!ssl || !ctx)
|
|
||||||
return BAD_FUNC_ARG;
|
|
||||||
|
|
||||||
byte havePSK = 0;
|
byte havePSK = 0;
|
||||||
byte haveAnon = 0;
|
byte haveAnon = 0;
|
||||||
byte haveRSA = 0;
|
byte haveRSA = 0;
|
||||||
byte newSSL = ssl->ctx == NULL;
|
byte newSSL = ssl->ctx == NULL;
|
||||||
(void) haveAnon; /* Squash unused var warnings */
|
|
||||||
|
|
||||||
|
(void) haveAnon; /* Squash unused var warnings */
|
||||||
|
|
||||||
|
if(!ssl || !ctx)
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
haveRSA = 1;
|
haveRSA = 1;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user