From 9559f090281744cf28d7bdc5771c948381a484c4 Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 13 Jun 2013 12:13:46 -0700 Subject: [PATCH] warning fixes --- ctaocrypt/src/random.c | 6 +++++- src/internal.c | 8 +++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ctaocrypt/src/random.c b/ctaocrypt/src/random.c index fb99c0c58..250dbb9d9 100644 --- a/ctaocrypt/src/random.c +++ b/ctaocrypt/src/random.c @@ -568,13 +568,17 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz) return 0; } #elif defined(CYASSL_LPC43xx) || defined(CYASSL_STM32F2xx) + #warning "write a real random seed!!!!, just for testing now" + int GenerateSeed(OS_Seed* os, byte* output, word32 sz) { int i; + for (i = 0; i < sz; i++ ) output[i] = i; - return 0; + + return 0; } #elif defined(NO_DEV_RANDOM) diff --git a/src/internal.c b/src/internal.c index b112e074b..e259e5675 100644 --- a/src/internal.c +++ b/src/internal.c @@ -9558,14 +9558,9 @@ static void PickHashSigAlgo(CYASSL* ssl, word32 i = *inOutsz; int ret = VERIFY_CERT_ERROR; /* start in error state */ byte* sig; - byte* out; - int outLen; byte hashAlgo = sha_mac; byte sigAlgo = anonymous_sa_algo; - (void)out; - (void)outLen; - #ifdef CYASSL_CALLBACKS if (ssl->hsInfoOn) AddPacketName("CertificateVerify", &ssl->handShakeInfo); @@ -9594,6 +9589,9 @@ static void PickHashSigAlgo(CYASSL* ssl, /* RSA */ #ifndef NO_RSA if (ssl->peerRsaKeyPresent != 0) { + byte* out; + int outLen; + CYASSL_MSG("Doing RSA peer cert verify"); outLen = RsaSSL_VerifyInline(sig, sz, &out, ssl->peerRsaKey);