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 @@ -688,12 +688,12 @@ public function verifyIntegrity() {
688688-----END CERTIFICATE-----
689689EOF ;
690690
691- $ validSignature = ( bool ) openssl_verify (
691+ $ validSignature = openssl_verify (
692692 file_get_contents ($ this ->getDownloadedFilePath ()),
693693 base64_decode ($ response ['signature ' ]),
694694 $ certificate ,
695695 OPENSSL_ALGO_SHA512
696- );
696+ ) === 1 ;
697697
698698 if ($ validSignature === false ) {
699699 throw new \Exception ('Signature of update is not valid ' );
Original file line number Diff line number Diff line change @@ -652,12 +652,12 @@ public function verifyIntegrity() {
652652-----END CERTIFICATE-----
653653EOF ;
654654
655- $ validSignature = ( bool ) openssl_verify (
655+ $ validSignature = openssl_verify (
656656 file_get_contents ($ this ->getDownloadedFilePath ()),
657657 base64_decode ($ response ['signature ' ]),
658658 $ certificate ,
659659 OPENSSL_ALGO_SHA512
660- );
660+ ) === 1 ;
661661
662662 if ($ validSignature === false ) {
663663 throw new \Exception ('Signature of update is not valid ' );
You can’t perform that action at this time.
0 commit comments