mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
warning fixes
This commit is contained in:
@@ -568,12 +568,16 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#elif defined(CYASSL_LPC43xx) || defined(CYASSL_STM32F2xx)
|
#elif defined(CYASSL_LPC43xx) || defined(CYASSL_STM32F2xx)
|
||||||
|
|
||||||
#warning "write a real random seed!!!!, just for testing now"
|
#warning "write a real random seed!!!!, just for testing now"
|
||||||
|
|
||||||
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < sz; i++ )
|
for (i = 0; i < sz; i++ )
|
||||||
output[i] = i;
|
output[i] = i;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9558,14 +9558,9 @@ static void PickHashSigAlgo(CYASSL* ssl,
|
|||||||
word32 i = *inOutsz;
|
word32 i = *inOutsz;
|
||||||
int ret = VERIFY_CERT_ERROR; /* start in error state */
|
int ret = VERIFY_CERT_ERROR; /* start in error state */
|
||||||
byte* sig;
|
byte* sig;
|
||||||
byte* out;
|
|
||||||
int outLen;
|
|
||||||
byte hashAlgo = sha_mac;
|
byte hashAlgo = sha_mac;
|
||||||
byte sigAlgo = anonymous_sa_algo;
|
byte sigAlgo = anonymous_sa_algo;
|
||||||
|
|
||||||
(void)out;
|
|
||||||
(void)outLen;
|
|
||||||
|
|
||||||
#ifdef CYASSL_CALLBACKS
|
#ifdef CYASSL_CALLBACKS
|
||||||
if (ssl->hsInfoOn)
|
if (ssl->hsInfoOn)
|
||||||
AddPacketName("CertificateVerify", &ssl->handShakeInfo);
|
AddPacketName("CertificateVerify", &ssl->handShakeInfo);
|
||||||
@@ -9594,6 +9589,9 @@ static void PickHashSigAlgo(CYASSL* ssl,
|
|||||||
/* RSA */
|
/* RSA */
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
if (ssl->peerRsaKeyPresent != 0) {
|
if (ssl->peerRsaKeyPresent != 0) {
|
||||||
|
byte* out;
|
||||||
|
int outLen;
|
||||||
|
|
||||||
CYASSL_MSG("Doing RSA peer cert verify");
|
CYASSL_MSG("Doing RSA peer cert verify");
|
||||||
|
|
||||||
outLen = RsaSSL_VerifyInline(sig, sz, &out, ssl->peerRsaKey);
|
outLen = RsaSSL_VerifyInline(sig, sz, &out, ssl->peerRsaKey);
|
||||||
|
Reference in New Issue
Block a user