diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-13 14:08:15 -0800 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-01-14 07:46:59 +0100 |
commit | 84105c3b05c513bc1594ef99be9ed63b8a8f1a18 (patch) | |
tree | 4884243a5b0e930b17d9d5eb1cd88523f525ab5c /include | |
parent | a70db805b7a7b8f428b6cd78fb5a567184530b6b (diff) | |
download | volse-hubzilla-84105c3b05c513bc1594ef99be9ed63b8a8f1a18.tar.gz volse-hubzilla-84105c3b05c513bc1594ef99be9ed63b8a8f1a18.tar.bz2 volse-hubzilla-84105c3b05c513bc1594ef99be9ed63b8a8f1a18.zip |
cleanup of last fix3.0.1
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto.php | 4 |
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) |