fix invalid check on unsigned type

This commit is contained in:
Jacob Barthelmeh
2017-04-12 10:31:34 -06:00
parent ad6cc6be2e
commit 60ea23a6de

View File

@ -23568,11 +23568,13 @@ int wolfSSL_RSA_sign_ex(int type, const unsigned char* m,
}
else {
show("Encoded Message", encodedSig, signSz);
if(flag != 0){
if (flag != 0) {
ret = wc_RsaSSL_Sign(encodedSig, signSz, sigRet, outLen,
(RsaKey*)rsa->internal, rng);
if (ret <= 0)
if (ret <= 0) {
WOLFSSL_MSG("Bad Rsa Sign");
ret = 0;
}
else {
*sigLen = (unsigned int)ret;
ret = SSL_SUCCESS;