File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -708,12 +708,12 @@ public function verifyIntegrity(): void {
708708-----END CERTIFICATE-----
709709EOF ;
710710
711- $ validSignature = ( bool ) openssl_verify (
711+ $ validSignature = openssl_verify (
712712 file_get_contents ($ this ->getDownloadedFilePath ()),
713713 base64_decode ($ response ['signature ' ]),
714714 $ certificate ,
715715 OPENSSL_ALGO_SHA512
716- );
716+ ) === 1 ;
717717
718718 if ($ validSignature === false ) {
719719 throw new \Exception ('Signature of update is not valid ' );
Original file line number Diff line number Diff line change @@ -670,12 +670,12 @@ public function verifyIntegrity(): void {
670670-----END CERTIFICATE-----
671671EOF ;
672672
673- $ validSignature = ( bool ) openssl_verify (
673+ $ validSignature = openssl_verify (
674674 file_get_contents ($ this ->getDownloadedFilePath ()),
675675 base64_decode ($ response ['signature ' ]),
676676 $ certificate ,
677677 OPENSSL_ALGO_SHA512
678- );
678+ ) === 1 ;
679679
680680 if ($ validSignature === false ) {
681681 throw new \Exception ('Signature of update is not valid ' );
You can’t perform that action at this time.
0 commit comments