Lines Matching refs:crl

2447      * @param string $crl
2452 public function loadCRL($crl, $mode = self::FORMAT_AUTO_DETECT) argument
2454 if (is_array($crl) && isset($crl['tbsCertList'])) {
2455 $this->currentCert = $crl;
2457 return $crl;
2461 $newcrl = ASN1::extractBER($crl);
2462 if ($mode == self::FORMAT_PEM && $crl == $newcrl) {
2465 $crl = $newcrl;
2467 $orig = $crl;
2469 if ($crl === false) {
2474 $decoded = ASN1::decodeBER($crl);
2481 $crl = ASN1::asn1map($decoded[0], Maps\CertificateList::MAP);
2482 if (!isset($crl) || $crl === false) {
2489 $this->mapInDNs($crl, 'tbsCertList/issuer/rdnSequence');
2490 if ($this->isSubArrayValid($crl, 'tbsCertList/crlExtensions')) {
2491 $this->mapInExtensions($crl, 'tbsCertList/crlExtensions');
2493 if ($this->isSubArrayValid($crl, 'tbsCertList/revokedCertificates')) {
2494 $rclist_ref = &$this->subArrayUnchecked($crl, 'tbsCertList/revokedCertificates');
2496 $rclist = $crl['tbsCertList']['revokedCertificates'];
2506 $this->currentCert = $crl;
2508 return $crl;
2514 * @param array $crl
2519 public function saveCRL($crl, $format = self::FORMAT_PEM) argument
2521 if (!is_array($crl) || !isset($crl['tbsCertList'])) {
2533 if (empty($crl['tbsCertList']['signature']['parameters'])) {
2538 if (empty($crl['signatureAlgorithm']['parameters'])) {
2545 $this->mapOutDNs($crl, 'tbsCertList/issuer/rdnSequence');
2546 $this->mapOutExtensions($crl, 'tbsCertList/crlExtensions');
2547 $rclist = &$this->subArray($crl, 'tbsCertList/revokedCertificates');
2554 $crl = ASN1::encodeDER($crl, Maps\CertificateList::MAP);
2558 return $crl;
2561 …return "-----BEGIN X509 CRL-----\r\n" . chunk_split(Base64::encode($crl), 64) . '-----END X509 CRL…
2916 public function signCRL($issuer, $crl) argument
2929 …if (isset($crl->currentCert) && is_array($crl->currentCert) && isset($crl->currentCert['tbsCertLis…
2930 $this->currentCert = $crl->currentCert;
3947 * @param array $crl optional
3951 public function listRevoked($crl = null) argument
3953 if (!isset($crl)) {
3954 $crl = $this->currentCert;
3957 if (!isset($crl['tbsCertList'])) {
3963 if (is_array($rclist = $this->subArray($crl, 'tbsCertList/revokedCertificates'))) {
3998 * @param array $crl optional
4002 public function getRevokedCertificateExtension($serial, $id, $crl = null) argument
4004 if (!isset($crl)) {
4005 $crl = $this->currentCert;
4008 if (is_array($rclist = $this->subArray($crl, 'tbsCertList/revokedCertificates'))) {
4010 … return $this->getExtension($id, $crl, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");
4021 * @param array $crl optional
4025 public function getRevokedCertificateExtensions($serial, $crl = null) argument
4027 if (!isset($crl)) {
4028 $crl = $this->currentCert;
4031 if (is_array($rclist = $this->subArray($crl, 'tbsCertList/revokedCertificates'))) {
4033 … return $this->getExtensions($crl, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");