You are here

public function Verifier::verifyCsigChecksumList in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/drupal/php-signify/src/Verifier.php \Drupal\Signify\Verifier::verifyCsigChecksumList()

Verify a signed checksum list, and then verify the checksum for each file in the list.

Parameters

string $csig_signed_checksum_list: Contents of a CSIG signature file whose message is a file checksum list.

string $working_directory: A directory on the filesystem that the file checksum list is relative to.

\DateTime $now: If provided, a \DateTime object modeling "now".

Return value

int The number of files verified.

Throws

\SodiumException

\Drupal\Signify\VerifierException Thrown when the checksum list could not be verified by the signature, or a listed file could not be verified.

1 call to Verifier::verifyCsigChecksumList()
Verifier::verifyCsigChecksumFile in vendor/drupal/php-signify/src/Verifier.php
Verify the a signed checksum list file, and then verify the checksum for each file in the list.

File

vendor/drupal/php-signify/src/Verifier.php, line 285

Class

Verifier

Namespace

Drupal\Signify

Code

public function verifyCsigChecksumList($csig_signed_checksum_list, $working_directory, \DateTime $now = NULL) {
  $checksum_list_raw = $this
    ->verifyCsigMessage($csig_signed_checksum_list, $now);
  return $this
    ->verifyTrustedChecksumList($checksum_list_raw, $working_directory);
}