warning fixes
This commit is contained in:
parent
b40c2c0b1f
commit
9559f09028
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user