mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #1712 from JacobBarthelmeh/Testing
check if internal of WOLFSSL_RSA struct is already set
This commit is contained in:
@ -27976,9 +27976,11 @@ int wolfSSL_i2d_RSAPrivateKey(WOLFSSL_RSA *rsa, unsigned char **pp)
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
if ((ret = SetRsaInternal(rsa)) != WOLFSSL_SUCCESS) {
|
||||
WOLFSSL_MSG("SetRsaInternal() Failed");
|
||||
return ret;
|
||||
if (rsa->inSet == 0) {
|
||||
if ((ret = SetRsaInternal(rsa)) != WOLFSSL_SUCCESS) {
|
||||
WOLFSSL_MSG("SetRsaInternal() Failed");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/* 5 > size of n, d, p, q, d%(p-1), d(q-1), 1/q%p, e + ASN.1 additional
|
||||
|
Reference in New Issue
Block a user