stop the PHP warnings from Thomas's buggered sitekey
This commit is contained in:
parent
72f3f7c172
commit
da79662081
@ -20,7 +20,7 @@ function rsa_verify($data,$sig,$key,$alg = 'sha256') {
|
|||||||
|
|
||||||
if(intval(OPENSSL_ALGO_SHA256) && $alg === 'sha256')
|
if(intval(OPENSSL_ALGO_SHA256) && $alg === 'sha256')
|
||||||
$alg = OPENSSL_ALGO_SHA256;
|
$alg = OPENSSL_ALGO_SHA256;
|
||||||
$verify = openssl_verify($data,$sig,$key,$alg);
|
$verify = @openssl_verify($data,$sig,$key,$alg);
|
||||||
|
|
||||||
if(! $verify) {
|
if(! $verify) {
|
||||||
logger('openssl_verify: ' . openssl_error_string(),LOGGER_NORMAL,LOG_ERR);
|
logger('openssl_verify: ' . openssl_error_string(),LOGGER_NORMAL,LOG_ERR);
|
||||||
|
Reference in New Issue
Block a user