unexpected openssl result

This commit is contained in:
zotlabs
2018-01-13 13:45:33 -08:00
parent 8892568652
commit 08bea83c03
3 changed files with 3 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ function rsa_verify($data,$sig,$key,$alg = 'sha256') {
btlogger('openssl_verify: key: ' . $key, LOGGER_DEBUG, LOG_ERR);
}
return $verify;
return (intval($verify) > 0 ? 1 : 0);
}
function pkcs5_pad ($text, $blocksize)