Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize OPENSSL_ALL local size / length / type vars #6035

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/pk.c
Original file line number Diff line number Diff line change
Expand Up @@ -3372,9 +3372,9 @@ int wolfSSL_RSA_padding_add_PKCS1_PSS(WOLFSSL_RSA *rsa, unsigned char *em,
{
int ret = 1;
enum wc_HashType hashType;
int hashLen;
int emLen;
int mgf;
int hashLen = 0;
int emLen = 0;
int mgf = 0;
int initTmpRng = 0;
WC_RNG *rng = NULL;
#ifdef WOLFSSL_SMALL_STACK
Expand Down Expand Up @@ -3504,11 +3504,11 @@ int wolfSSL_RSA_verify_PKCS1_PSS(WOLFSSL_RSA *rsa, const unsigned char *mHash,
const unsigned char *em, int saltLen)
{
int ret = 1;
int hashLen;
int mgf;
int emLen;
int mPrimeLen;
enum wc_HashType hashType;
int hashLen = 0;
int mgf = 0;
int emLen = 0;
int mPrimeLen = 0;
enum wc_HashType hashType = WC_HASH_TYPE_NONE;
byte *mPrime = NULL;
byte *buf = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -38119,7 +38119,7 @@ int wolfSSL_PEM_write_bio_PKCS8PrivateKey(WOLFSSL_BIO* bio,
byte* key = NULL;
word32 keySz;
byte* pem = NULL;
int pemSz;
int pemSz = 0;
int type = PKCS8_PRIVATEKEY_TYPE;
int algId;
const byte* curveOid;
Expand Down