@@ -30,41 +30,28 @@ class RevocationValues extends \Adapik\CMS\RevocationValues
3030 /**
3131 * @param BasicOCSPResponse|null $basicOCSPResponse
3232 * @param CertificateList|null $certificateList
33- * @param Sequence|null $otherRevValues
3433 * @return RevocationValues
3534 * @throws ParserException
3635 */
37- public static function createFromOCSPResponse (?BasicOCSPResponse $ basicOCSPResponse = null , ?CertificateList $ certificateList = null , ? Sequence $ otherRevValues = null ): self
36+ public static function createFromOCSPResponse (?BasicOCSPResponse $ basicOCSPResponse = null , ?CertificateList $ certificateList = null ): self
3837 {
39- return new self (self ::sequenceFromOCSPResponse ($ basicOCSPResponse , $ certificateList, $ otherRevValues ));
38+ return new self (self ::sequenceFromOCSPResponse ($ basicOCSPResponse , $ certificateList ));
4039 }
4140
4241 /**
4342 * @param BasicOCSPResponse|null $basicOCSPResponse
4443 * @param CertificateList|null $certificateList
45- * @param Sequence|null $otherRevValues
4644 * @return Sequence
4745 * @throws ParserException
4846 */
49- public static function sequenceFromOCSPResponse (?BasicOCSPResponse $ basicOCSPResponse = null , ?CertificateList $ certificateList = null , ? Sequence $ otherRevValues = null ): Sequence
47+ public static function sequenceFromOCSPResponse (?BasicOCSPResponse $ basicOCSPResponse = null , ?CertificateList $ certificateList = null ): Sequence
5048 {
51- if (is_null ($ basicOCSPResponse ) and is_null ($ certificateList ) and is_null ( $ otherRevValues ) ) {
49+ if (is_null ($ basicOCSPResponse ) and is_null ($ certificateList )) {
5250 throw new Exception ("At least 1 parameter must be not null " );
5351 }
5452
5553 $ values = [];
5654
57- if (!is_null ($ basicOCSPResponse )) {
58- $ binary = $ basicOCSPResponse ->getBinary ();
59-
60- $ values [] = ExplicitlyTaggedObject::create (1 ,
61- Sequence::create ([
62- Sequence::fromBinary ($ binary ),
63- ]
64- )
65- );
66- }
67-
6855 if (!is_null ($ certificateList )) {
6956 $ binary = $ certificateList ->getBinary ();
7057
@@ -76,10 +63,10 @@ public static function sequenceFromOCSPResponse(?BasicOCSPResponse $basicOCSPRes
7663 );
7764 }
7865
79- if (!is_null ($ otherRevValues )) {
80- $ binary = $ otherRevValues ->getBinary ();
66+ if (!is_null ($ basicOCSPResponse )) {
67+ $ binary = $ basicOCSPResponse ->getBinary ();
8168
82- $ values [] = ExplicitlyTaggedObject::create (2 ,
69+ $ values [] = ExplicitlyTaggedObject::create (1 ,
8370 Sequence::create ([
8471 Sequence::fromBinary ($ binary ),
8572 ]
0 commit comments