diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-15 21:49:28 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-15 21:49:28 -0800 |
commit | 05f9f0a393d7e414481f3e33e651d33f341e59b0 (patch) | |
tree | 093113813f751891d6f1686e9351727b449c102b /include/crypto.php | |
parent | 76c8bbf7b83d6cdbd0b16ebbdaa4cab48662221f (diff) | |
parent | 746ea5a3691a67ceb176352e8b6fcfe0f2dc99d6 (diff) | |
download | volse-hubzilla-05f9f0a393d7e414481f3e33e651d33f341e59b0.tar.gz volse-hubzilla-05f9f0a393d7e414481f3e33e651d33f341e59b0.tar.bz2 volse-hubzilla-05f9f0a393d7e414481f3e33e651d33f341e59b0.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/crypto.php')
-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 622add4dc..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 $verify; + return (($verify > 0) ? true : false); } function pkcs5_pad ($text, $blocksize) |