aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-13 14:08:15 -0800
committerzotlabs <mike@macgirvin.com>2018-01-13 14:08:15 -0800
commiteb3e43feec4e2de439de5398fcf498c0de5afbd4 (patch)
treeb4554bf6591503c9629c7c0da88b6422da143bda /include
parent08bea83c032675e93c789070e681aab212c1d2a4 (diff)
downloadvolse-hubzilla-eb3e43feec4e2de439de5398fcf498c0de5afbd4.tar.gz
volse-hubzilla-eb3e43feec4e2de439de5398fcf498c0de5afbd4.tar.bz2
volse-hubzilla-eb3e43feec4e2de439de5398fcf498c0de5afbd4.zip
cleanup of last fix
Diffstat (limited to 'include')
-rw-r--r--include/crypto.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/crypto.php b/include/crypto.php
index ab10edb03..b990b18d9 100644
--- a/include/crypto.php
+++ b/include/crypto.php
@@ -22,13 +22,13 @@ function rsa_verify($data,$sig,$key,$alg = 'sha256') {
$alg = OPENSSL_ALGO_SHA256;
$verify = @openssl_verify($data,$sig,$key,$alg);
- if(! $verify) {
+ if($verify === (-1)) {
while($msg = openssl_error_string())
logger('openssl_verify: ' . $msg,LOGGER_NORMAL,LOG_ERR);
btlogger('openssl_verify: key: ' . $key, LOGGER_DEBUG, LOG_ERR);
}
- return (intval($verify) > 0 ? 1 : 0);
+ return (($verify > 0) ? true : false);
}
function pkcs5_pad ($text, $blocksize)