forked from wolfSSL/wolfssl
Merge pull request #850 from JacobBarthelmeh/Testing
fix invalid check on unsigned type
This commit is contained in:
10
src/ssl.c
10
src/ssl.c
@ -18767,12 +18767,16 @@ int wolfSSL_RSA_sign(int type, const unsigned char* m,
|
||||
WOLFSSL_MSG("Bad Encode Signature");
|
||||
}
|
||||
else {
|
||||
*sigLen = wc_RsaSSL_Sign(encodedSig, signSz, sigRet, outLen,
|
||||
ret = wc_RsaSSL_Sign(encodedSig, signSz, sigRet, outLen,
|
||||
(RsaKey*)rsa->internal, rng);
|
||||
if (*sigLen <= 0)
|
||||
if (ret <= 0) {
|
||||
WOLFSSL_MSG("Bad Rsa Sign");
|
||||
else
|
||||
ret = 0;
|
||||
}
|
||||
else {
|
||||
ret = SSL_SUCCESS;
|
||||
*sigLen = ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user