Fix for RSA without SHA512 build error. Fix or renew cert PEM to DER.

This commit is contained in:
David Garske
2020-01-22 08:15:34 -08:00
parent e3e862c8b6
commit 2a5c623c97
2 changed files with 5 additions and 2 deletions

View File

@@ -1467,7 +1467,10 @@ static int RsaUnPad_PSS(byte *pkcsBlock, unsigned int pkcsBlockLen,
{
int ret;
byte* tmp;
int hLen, i, maskLen, orig_bits = bits;
int hLen, i, maskLen;
#ifdef WOLFSSL_SHA512
int orig_bits = bits;
#endif
#if defined(WOLFSSL_NO_MALLOC) && !defined(WOLFSSL_STATIC_MEMORY)
byte tmp_buf[RSA_MAX_SIZE/8];
tmp = tmp_buf;