mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
fix invalid check on unsigned type
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user