forked from wolfSSL/wolfssl
Fix for RSA without SHA512 build error. Fix or renew cert PEM to DER.
This commit is contained in:
@ -182,7 +182,7 @@ run_renewcerts(){
|
|||||||
check_result $? "Step 3"
|
check_result $? "Step 3"
|
||||||
mv ./3072/tmp.pem ./3072/client-cert.pem
|
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
|
openssl x509 -in ./3072/client-cert.pem -outform der -out ./3072/client-cert.der
|
||||||
|
|
||||||
echo "End of section"
|
echo "End of section"
|
||||||
|
@ -1467,7 +1467,10 @@ static int RsaUnPad_PSS(byte *pkcsBlock, unsigned int pkcsBlockLen,
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
byte* tmp;
|
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)
|
#if defined(WOLFSSL_NO_MALLOC) && !defined(WOLFSSL_STATIC_MEMORY)
|
||||||
byte tmp_buf[RSA_MAX_SIZE/8];
|
byte tmp_buf[RSA_MAX_SIZE/8];
|
||||||
tmp = tmp_buf;
|
tmp = tmp_buf;
|
||||||
|
Reference in New Issue
Block a user