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

@ -182,7 +182,7 @@ run_renewcerts(){
check_result $? "Step 3"
mv ./3072/tmp.pem ./3072/client-cert.pem
openssl x509 -in ./3072/client-key.pem -outform der -out ./3072/client-key.der
openssl rsa -in ./3072/client-key.pem -outform der -out ./3072/client-key.der
openssl x509 -in ./3072/client-cert.pem -outform der -out ./3072/client-cert.der
echo "End of section"

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;