warning fixes

This commit is contained in:
toddouska 2013-06-13 12:13:46 -07:00
parent b40c2c0b1f
commit 9559f09028
2 changed files with 8 additions and 6 deletions

View File

@ -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)

View File

@ -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);