Skip to content

CryptoHelper::verify method seems wrong #31

@mcorteel-harel

Description

@mcorteel-harel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions