lots o warning fixes for rc3

This commit is contained in:
toddouska
2011-09-28 13:19:05 -07:00
parent ab6ab40271
commit 27d35d50cc
10 changed files with 25 additions and 26 deletions

View File

@@ -75,7 +75,7 @@ int main(int argc, char** argv)
bench_aes(1);
#endif
bench_arc4();
#if HAVE_HC128
#ifdef HAVE_HC128
bench_hc128();
#endif
#ifndef NO_RABBIT
@@ -204,7 +204,7 @@ void bench_arc4()
}
#if HAVE_HC128
#ifdef HAVE_HC128
void bench_hc128()
{
HC128 enc;

View File

@@ -1194,8 +1194,10 @@ static int GetName(DecodedCert* cert, int nameType)
byte joint[2];
int oidSz;
if (GetSet(cert->source, &cert->srcIdx, &dummy, cert->maxIdx) < 0)
if (GetSet(cert->source, &cert->srcIdx, &dummy, cert->maxIdx) < 0) {
(void)b; /* empty body warning w/o messages enabled */
CYASSL_MSG("Cert name lacks set header, trying sequence");
}
if (GetSequence(cert->source, &cert->srcIdx, &dummy, cert->maxIdx) < 0)
return ASN_PARSE_E;

View File

@@ -23,7 +23,7 @@
#include <config.h>
#endif
#if HAVE_HC128
#ifdef HAVE_HC128
#include <cyassl/ctaocrypt/hc128.h>
#ifdef NO_INLINE

View File

@@ -752,7 +752,7 @@ int arc4_test()
int hc128_test()
{
#if defined(HAVE_HC128) && HAVE_HC128
#ifdef HAVE_HC128
byte cipher[16];
byte plain[16];