avoid unused variable warnings

This commit is contained in:
kaleb-himes
2016-01-04 15:03:39 -07:00
parent 8a47c1d01e
commit dd469bb67d

View File

@ -1519,6 +1519,11 @@ void InitSuites(Suites* suites, ProtocolVersion pv, word16 haveRSA,
}
#endif
/* account for unused variable warnings ifdef WOLFSSL_DTLS */
#ifdef WOLFSSL_DTLS
(void) dtls;
(void) tls;
#endif
suites->suiteSz = idx;
InitSuitesHashSigAlgo(suites, haveECDSAsig, haveRSAsig, 0);
@ -15438,7 +15443,7 @@ int DoSessionTicket(WOLFSSL* ssl,
#error "DTLS needs either SHA or SHA-256"
#endif /* NO_SHA && NO_SHA256 */
#ifndef NO_SHA
#if !defined(NO_SHA) && defined(NO_SHA256)
cookieType = SHA;
cookieSz = SHA_DIGEST_SIZE;
#endif /* NO_SHA */