Lines Matching defs:type

407                 'netscape-cert-type' => '2.16.840.1.113730.1.1',
528 $type_utf8_string = ['type' => ASN1::TYPE_UTF8_STRING];
544 /* in the case of policyQualifiers/qualifier, the type has to be \phpseclib3\File\ASN1::TYPE_IA5_STRING.
549 = ['type' => ASN1::TYPE_IA5_STRING];
584 corresponding to the extension type identified by extnID */
673 // actual type is \phpseclib3\File\ASN1::TYPE_ANY
689 corresponding to the extension type identified by extnID */
704 * Map attribute values from ANY type to attribute-specific internal
716 $id = $attributes[$i]['type'];
718 corresponding to the attribute type identified by type */
747 * ANY type.
760 corresponding to the attribute type identified by type */
761 $id = $attributes[$i]['type'];
790 * Map DN values from ANY type to DN-specific internal
803 $type = $dns[$i][$j]['type'];
806 $map = $this->getMapping($type);
822 * ANY type.
835 $type = $dns[$i][$j]['type'];
841 $map = $this->getMapping($type);
896 case 'netscape-cert-type':
903 // since id-qt-cps isn't a constructed type it will have already been decoded as a string by the time it gets
1021 * [RFC2459]. If more than one identity of a given type is present in
1051 If a subjectAltName extension of type dNSName is present, that MUST
1647 * @param string $type optional
1650 public function setDNProp($propName, $propValue, $type = 'utf8String')
1661 if (!is_array($v) && isset($type)) {
1662 $v = [$type => $v];
1666 'type' => $propName,
1693 if ($dn[$i][0]['type'] == $propName) {
1728 $filters['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1734 if ($dn[$i][0]['type'] == $propName) {
1738 foreach ($v as $type => $s) {
1739 $type = array_search($type, ASN1::ANY_MAP);
1740 if ($type !== false && array_key_exists($type, ASN1::STRING_TYPE_SIZE)) {
1741 $s = ASN1::convert($s, $type);
1749 $v = array_pop($v); // Always strip data type.
1774 * @param string $type optional
1777 public function setDN($dn, $merge = false, $type = 'utf8String')
1791 if (!$this->setDNProp($prop, $value, $type)) {
1803 if (!$this->setDNProp($prop, $value, $type)) {
1829 $filters['rdnSequence']['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1838 $filters['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1846 foreach ($attr['value'] as $type => $v) {
1847 $type = array_search($type, ASN1::ANY_MAP, true);
1848 if ($type !== false && array_key_exists($type, ASN1::STRING_TYPE_SIZE)) {
1849 $v = ASN1::convert($v, $type);
1876 $filters['rdnSequence']['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1881 $prop = $field[0]['type'];
1924 foreach ($value as $type => $v) {
1925 $type = array_search($type, ASN1::ANY_MAP, true);
1926 if ($type !== false && array_key_exists($type, ASN1::STRING_TYPE_SIZE)) {
1927 $v = ASN1::convert($v, $type);
1935 $value = array_pop($value); // Always strip data type.
2275 = ['type' => ASN1::TYPE_UTF8_STRING];
2477 = ['type' => ASN1::TYPE_UTF8_STRING];
2479 = ['type' => ASN1::TYPE_UTF8_STRING];
2481 = ['type' => ASN1::TYPE_UTF8_STRING];
2485 = ['type' => ASN1::TYPE_NULL];
2490 = ['type' => ASN1::TYPE_NULL];
3223 if ($value['type'] == 'pkcs-9-at-extensionRequest') {
3230 $attributes[] = ['type' => 'pkcs-9-at-extensionRequest', 'value' => []];
3430 if ($attribute['type'] == $id) {
3483 if ($attribute['type'] == $id) {
3520 $attrs[] = $attribute['type'];
3553 if ($attribute['type'] == $id) {
3576 $attributes[] = ['type' => $id, 'value' => $disposition == self::ATTR_ALL ? $value : [$value]];
3637 $raw = ASN1::asn1map($decoded[0], ['type' => ASN1::TYPE_BIT_STRING]);