Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace Proton\IosReceiptParser\ASN1; |
4 | |
5 | interface Pkcs7Reader |
6 | { |
7 | /** |
8 | * Read data from pkcs#7 container trusting any certificate bundled inside. |
9 | * |
10 | * @param string $ber BER-encoded (NOT guaranteed to be DER-encoded) pkcs#7 container |
11 | * @return string The binary data |
12 | */ |
13 | public function readUnverified(string $ber): string; |
14 | |
15 | /** |
16 | * Ignore any bundled certificates and verify pkcs#7 container using only the provided certificates |
17 | * which themselves will no be verified. |
18 | * |
19 | * @param string $ber BER-encoded (NOT guaranteed to be DER-encoded) pkcs#7 container |
20 | * @param string ...$certificates Trusted (will not be verified) certificates |
21 | * (pem-encoded or paths to pem-encoded files) to search signer's certificate amongst |
22 | * @return string The binary data after verifications |
23 | */ |
24 | public function readUsingOnlyTrustedCerts(string $ber, string ...$certificates): string; |
25 | } |