more clang warnings
This commit is contained in:
parent
e5b0000ee4
commit
ba95c33ed4
@ -2563,7 +2563,6 @@ static int ConfirmSignature(const byte* buf, word32 bufSz,
|
||||
(void)sigSz;
|
||||
(void)heap;
|
||||
(void)ret;
|
||||
(void)typeH;
|
||||
|
||||
switch (sigOID) {
|
||||
#ifndef NO_MD5
|
||||
@ -2647,6 +2646,7 @@ static int ConfirmSignature(const byte* buf, word32 bufSz,
|
||||
CYASSL_MSG("Verify Signautre has unsupported type");
|
||||
return 0;
|
||||
}
|
||||
(void)typeH; /* some builds won't read */
|
||||
|
||||
switch (keyOID) {
|
||||
#ifndef NO_RSA
|
||||
|
@ -622,7 +622,6 @@ void InitSuites(Suites* suites, ProtocolVersion pv, byte haveRSA, byte havePSK,
|
||||
|
||||
(void)tls; /* shut up compiler */
|
||||
(void)tls1_2;
|
||||
(void)haveRSA;
|
||||
(void)haveDH;
|
||||
(void)havePSK;
|
||||
(void)haveNTRU;
|
||||
@ -636,8 +635,10 @@ void InitSuites(Suites* suites, ProtocolVersion pv, byte haveRSA, byte havePSK,
|
||||
if (suites->setSuites)
|
||||
return; /* trust user settings, don't override */
|
||||
|
||||
if (side == CYASSL_SERVER_END && haveStaticECC)
|
||||
if (side == CYASSL_SERVER_END && haveStaticECC) {
|
||||
haveRSA = 0; /* can't do RSA with ECDSA key */
|
||||
(void)haveRSA; /* some builds won't read */
|
||||
}
|
||||
|
||||
if (side == CYASSL_SERVER_END && haveECDSAsig) {
|
||||
haveRSAsig = 0; /* can't have RSA sig if signed by ECDSA */
|
||||
|
Loading…
x
Reference in New Issue
Block a user