Lines Matching defs:value

14  * portion of the certificate that contains optional parameters with default values.  ie. if the parameter isn't there the default value is
15 * used. Problem is, if the parameter is there and it just so happens to have the default value there are two ways that that parameter can
16 * be encoded. It can be encoded explicitly or left out all together. This would effect the signature value and thus may invalidate the
134 * Attribute value disposition.
135 * If disposition is >= 0, this is the index of the target value.
138 const ATTR_APPEND = -2; // Add a value.
139 const ATTR_REPLACE = -3; // Clear first, then add a value.
530 $filters['tbsCertificate']['signature']['issuer']['rdnSequence']['value'] = $type_utf8_string;
531 $filters['tbsCertificate']['issuer']['rdnSequence']['value'] = $type_utf8_string;
532 $filters['tbsCertificate']['subject']['rdnSequence']['value'] = $type_utf8_string;
535 $filters['authorityCertIssuer']['directoryName']['rdnSequence']['value'] = $type_utf8_string;
537 $filters['distributionPoint']['fullName']['directoryName']['rdnSequence']['value'] = $type_utf8_string;
538 $filters['directoryName']['rdnSequence']['value'] = $type_utf8_string;
582 $value = &$extensions[$i]['extnValue'];
583 /* [extnValue] contains the DER encoding of an ASN.1 value
590 $decoded = ASN1::decodeBER($value);
595 $value = $mapped === false ? $decoded[0] : $mapped;
598 for ($j = 0; $j < count($value); $j++) {
599 if (!isset($value[$j]['policyQualifiers'])) {
602 for ($k = 0; $k < count($value[$j]['policyQualifiers']); $k++) {
603 $subid = $value[$j]['policyQualifiers'][$k]['policyQualifierId'];
605 $subvalue = &$value[$j]['policyQualifiers'][$k]['qualifier'];
637 'extnValue' => $value,
641 foreach ($extensions as $key => $value) {
642 if ($value['extnId'] == $id) {
659 $value = &$extensions[$i]['extnValue'];
663 for ($j = 0; $j < count($value); $j++) {
664 if (!isset($value[$j]['policyQualifiers'])) {
667 for ($k = 0; $k < count($value[$j]['policyQualifiers']); $k++) {
668 $subid = $value[$j]['policyQualifiers'][$k]['policyQualifierId'];
670 $subvalue = &$value[$j]['policyQualifiers'][$k]['qualifier'];
680 if (isset($value['authorityCertSerialNumber'])) {
681 if ($value['authorityCertSerialNumber']->toBytes() == '') {
683 $value['authorityCertSerialNumber'] = new Element($temp);
688 /* [extnValue] contains the DER encoding of an ASN.1 value
697 $value = ASN1::encodeDER($value, $map, ['iPAddress' => [static::class, 'encodeIP']]);
717 /* $value contains the DER encoding of an ASN.1 value
720 if (is_array($attributes[$i]['value'])) {
721 $values = &$attributes[$i]['value'];
723 $value = ASN1::encodeDER($values[$j], Maps\AttributeValue::MAP);
724 $decoded = ASN1::decodeBER($value);
737 $values[$j] = $value;
759 /* [value] contains the DER encoding of an ASN.1 value
766 } elseif (is_array($attributes[$i]['value'])) {
767 $values = &$attributes[$i]['value'];
804 $value = &$dns[$i][$j]['value'];
805 if (is_object($value) && $value instanceof Element) {
808 $decoded = ASN1::decodeBER($value);
812 $value = ASN1::asn1map($decoded[0], $map);
836 $value = &$dns[$i][$j]['value'];
837 if (is_object($value) && $value instanceof Element) {
843 $value = new Element(ASN1::encodeDER($value, $map));
1044 foreach ($name as $key => $value) {
1045 $value = preg_quote($value);
1046 $value = str_replace('\*', '[^.]*', $value);
1056 if (preg_match('#^' . $value . '$#', $components['host'])) {
1066 if (preg_match('#(?:\d{1-3}\.){4}#', $components['host'] . '.') && preg_match('#^' . $value . '$#', $components['host'])) {
1075 if ($value = $this->getDNProp('id-at-commonName')) {
1076 $value = str_replace(['.', '*'], ['\.', '[^.]*'], $value[0]);
1077 return preg_match('#^' . $value . '$#', $components['host']) === 1;
1667 'value' => $v
1728 $filters['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1735 $v = $dn[$i][0]['value'];
1790 foreach ($dn as $prop => $value) {
1791 if (!$this->setDNProp($prop, $value, $type)) {
1802 $value = $results[$i + 1];
1803 if (!$this->setDNProp($prop, $value, $type)) {
1829 $filters['rdnSequence']['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1838 $filters['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1845 if (is_array($attr['value'])) {
1846 foreach ($attr['value'] as $type => $v) {
1852 $attr['value'] = strtolower(trim($v));
1876 $filters['rdnSequence']['value'] = ['type' => ASN1::TYPE_UTF8_STRING];
1882 $value = $field[0]['value'];
1923 if (is_array($value)) {
1924 foreach ($value as $type => $v) {
1929 $value = $v;
1934 if (is_array($value)) {
1935 $value = array_pop($value); // Always strip data type.
1937 } elseif (is_object($value) && $value instanceof Element) {
1941 $value = strtoupper(preg_replace_callback('#[^\x20-\x7E]#', $callback, $value->element));
1943 $output .= $desc . '=' . $value;
1945 array_merge((array) $result[$desc], [$value]) :
1946 $value;
2074 foreach ($chain as $key => $value) {
2076 $chain[$key]->loadX509($value);
2274 $filters['certificationRequestInfo']['subject']['rdnSequence']['value']
2476 $filters['tbsCertList']['issuer']['rdnSequence']['value']
3054 the notAfter SHOULD be assigned the GeneralizedTime value of
3097 * a potentially large array by passing its reference by-value to is_array().
3131 * Passing a reference (i.e. $root) by-value (i.e. to is_array())
3222 foreach ($attributes as $key => $value) {
3223 if ($value['type'] == 'pkcs-9-at-extensionRequest') {
3224 $path = "$pth/$key/value/0";
3230 $attributes[] = ['type' => 'pkcs-9-at-extensionRequest', 'value' => []];
3231 $path = "$pth/$key/value/0";
3263 foreach ($extensions as $key => $value) {
3264 if ($value['extnId'] == $id) {
3296 foreach ($extensions as $key => $value) {
3297 if ($value['extnId'] == $id) {
3298 return $value['extnValue'];
3330 * @param mixed $value
3336 private function setExtensionHelper($id, $value, $critical = false, $replace = true, $path = null)
3344 $newext = ['extnId' => $id, 'critical' => $critical, 'extnValue' => $value];
3346 foreach ($extensions as $key => $value) {
3347 if ($value['extnId'] == $id) {
3403 * @param mixed $value
3408 public function setExtension($id, $value, $critical = false, $replace = true)
3410 return $this->setExtensionHelper($id, $value, $critical, $replace);
3431 $n = count($attribute['value']);
3445 unset($attributes[$key]['value'][$disposition]);
3446 $attributes[$key]['value'] = array_values($attributes[$key]['value']);
3484 $n = count($attribute['value']);
3490 return $attribute['value'];
3495 return $attribute['value'][$disposition];
3531 * @param mixed $value
3535 public function setAttribute($id, $value, $disposition = self::ATTR_ALL)
3554 $n = count($attribute['value']);
3563 $attributes[$key]['value'][$disposition] = $value;
3573 $attributes[$last]['value'][] = $value;
3576 $attributes[] = ['type' => $id, 'value' => $disposition == self::ATTR_ALL ? $value : [$value]];
3588 * @param string $value
3590 public function setKeyIdentifier($value)
3592 if (empty($value)) {
3595 $this->currentKeyIdentifier = $value;
3602 * Although key identifiers may be set to any unique value, this function
3947 * @param mixed $value
3952 public function setRevokedCertificateExtension($serial, $id, $value, $critical = false, $replace = true)
3957 return $this->setExtensionHelper($id, $value, $critical, $replace, "tbsCertList/revokedCertificates/$i/crlEntryExtensions");
3998 * @param mixed $value
4002 public function setExtensionValue($id, $value, $critical = false, $replace = false)
4004 $this->extensionValues[$id] = compact('critical', 'replace', 'value');