phpas2 icon indicating copy to clipboard operation
phpas2 copied to clipboard

CryptoHelper::verify method seems wrong

Open mcorteel-harel opened this issue 3 years ago • 2 comments

The CryptoHelper::verify() method (here) uses openssl_pkcs7_verify. But the parameters do not match the documentation at all:

  • The first parameter is a MimePart or a content string when it should be a filename
  • The third parameter is an output file when it should be null
  • The fourth parameter is an array of strings (which actually only contains a single certificate as a string, which comes from PartnerInterface::getCertificate()) when according to this, it should contain an array of filenames.

Am I missing something here?

mcorteel-harel avatar Jun 29 '21 09:06 mcorteel-harel