Viel neues
This commit is contained in:
532
qa-tool/htdocs/oidc/phpseclib/File/ANSI.php
Normal file
532
qa-tool/htdocs/oidc/phpseclib/File/ANSI.php
Normal file
@@ -0,0 +1,532 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Pure-PHP ANSI Decoder
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* If you call read() in \phpseclib3\Net\SSH2 you may get {@link http://en.wikipedia.org/wiki/ANSI_escape_code ANSI escape codes} back.
|
||||
* They'd look like chr(0x1B) . '[00m' or whatever (0x1B = ESC). They tell a
|
||||
* {@link http://en.wikipedia.org/wiki/Terminal_emulator terminal emulator} how to format the characters, what
|
||||
* color to display them in, etc. \phpseclib3\File\ANSI is a {@link http://en.wikipedia.org/wiki/VT100 VT100} terminal emulator.
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2012 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File;
|
||||
|
||||
/**
|
||||
* Pure-PHP ANSI Decoder
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
class ANSI
|
||||
{
|
||||
/**
|
||||
* Max Width
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $max_x;
|
||||
|
||||
/**
|
||||
* Max Height
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $max_y;
|
||||
|
||||
/**
|
||||
* Max History
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $max_history;
|
||||
|
||||
/**
|
||||
* History
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $history;
|
||||
|
||||
/**
|
||||
* History Attributes
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $history_attrs;
|
||||
|
||||
/**
|
||||
* Current Column
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $x;
|
||||
|
||||
/**
|
||||
* Current Row
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $y;
|
||||
|
||||
/**
|
||||
* Old Column
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $old_x;
|
||||
|
||||
/**
|
||||
* Old Row
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $old_y;
|
||||
|
||||
/**
|
||||
* An empty attribute cell
|
||||
*
|
||||
* @var object
|
||||
*/
|
||||
private $base_attr_cell;
|
||||
|
||||
/**
|
||||
* The current attribute cell
|
||||
*
|
||||
* @var object
|
||||
*/
|
||||
private $attr_cell;
|
||||
|
||||
/**
|
||||
* An empty attribute row
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $attr_row;
|
||||
|
||||
/**
|
||||
* The current screen text
|
||||
*
|
||||
* @var list<string>
|
||||
*/
|
||||
private $screen;
|
||||
|
||||
/**
|
||||
* The current screen attributes
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $attrs;
|
||||
|
||||
/**
|
||||
* Current ANSI code
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $ansi;
|
||||
|
||||
/**
|
||||
* Tokenization
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $tokenization;
|
||||
|
||||
/**
|
||||
* Default Constructor.
|
||||
*
|
||||
* @return ANSI
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$attr_cell = new \stdClass();
|
||||
$attr_cell->bold = false;
|
||||
$attr_cell->underline = false;
|
||||
$attr_cell->blink = false;
|
||||
$attr_cell->background = 'black';
|
||||
$attr_cell->foreground = 'white';
|
||||
$attr_cell->reverse = false;
|
||||
$this->base_attr_cell = clone $attr_cell;
|
||||
$this->attr_cell = clone $attr_cell;
|
||||
|
||||
$this->setHistory(200);
|
||||
$this->setDimensions(80, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set terminal width and height
|
||||
*
|
||||
* Resets the screen as well
|
||||
*/
|
||||
public function setDimensions(int $x, int $y): void
|
||||
{
|
||||
$this->max_x = $x - 1;
|
||||
$this->max_y = $y - 1;
|
||||
$this->x = $this->y = 0;
|
||||
$this->history = $this->history_attrs = [];
|
||||
$this->attr_row = array_fill(0, $this->max_x + 2, $this->base_attr_cell);
|
||||
$this->screen = array_fill(0, $this->max_y + 1, '');
|
||||
$this->attrs = array_fill(0, $this->max_y + 1, $this->attr_row);
|
||||
$this->ansi = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the number of lines that should be logged past the terminal height
|
||||
*/
|
||||
public function setHistory(int $history): void
|
||||
{
|
||||
$this->max_history = $history;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a string
|
||||
*/
|
||||
public function loadString(string $source): void
|
||||
{
|
||||
$this->setDimensions($this->max_x + 1, $this->max_y + 1);
|
||||
$this->appendString($source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Appdend a string
|
||||
*/
|
||||
public function appendString(string $source): void
|
||||
{
|
||||
$this->tokenization = [''];
|
||||
for ($i = 0; $i < strlen($source); $i++) {
|
||||
if (strlen($this->ansi)) {
|
||||
$this->ansi .= $source[$i];
|
||||
$chr = ord($source[$i]);
|
||||
// http://en.wikipedia.org/wiki/ANSI_escape_code#Sequence_elements
|
||||
// single character CSI's not currently supported
|
||||
switch (true) {
|
||||
case $this->ansi == "\x1B=":
|
||||
$this->ansi = '';
|
||||
continue 2;
|
||||
case strlen($this->ansi) == 2 && $chr >= 64 && $chr <= 95 && $chr != ord('['):
|
||||
case strlen($this->ansi) > 2 && $chr >= 64 && $chr <= 126:
|
||||
break;
|
||||
default:
|
||||
continue 2;
|
||||
}
|
||||
$this->tokenization[] = $this->ansi;
|
||||
$this->tokenization[] = '';
|
||||
// http://ascii-table.com/ansi-escape-sequences-vt-100.php
|
||||
switch ($this->ansi) {
|
||||
case "\x1B[H": // Move cursor to upper left corner
|
||||
$this->old_x = $this->x;
|
||||
$this->old_y = $this->y;
|
||||
$this->x = $this->y = 0;
|
||||
break;
|
||||
case "\x1B[J": // Clear screen from cursor down
|
||||
$this->history = array_merge($this->history, array_slice(array_splice($this->screen, $this->y + 1), 0, $this->old_y));
|
||||
$this->screen = array_merge($this->screen, array_fill($this->y, $this->max_y, ''));
|
||||
|
||||
$this->history_attrs = array_merge($this->history_attrs, array_slice(array_splice($this->attrs, $this->y + 1), 0, $this->old_y));
|
||||
$this->attrs = array_merge($this->attrs, array_fill($this->y, $this->max_y, $this->attr_row));
|
||||
|
||||
if (count($this->history) == $this->max_history) {
|
||||
array_shift($this->history);
|
||||
array_shift($this->history_attrs);
|
||||
}
|
||||
// fall-through
|
||||
case "\x1B[K": // Clear screen from cursor right
|
||||
$this->screen[$this->y] = substr($this->screen[$this->y], 0, $this->x);
|
||||
|
||||
array_splice($this->attrs[$this->y], $this->x + 1, $this->max_x - $this->x, array_fill($this->x, $this->max_x - ($this->x - 1), $this->base_attr_cell));
|
||||
break;
|
||||
case "\x1B[2K": // Clear entire line
|
||||
$this->screen[$this->y] = str_repeat(' ', $this->x);
|
||||
$this->attrs[$this->y] = $this->attr_row;
|
||||
break;
|
||||
case "\x1B[?1h": // set cursor key to application
|
||||
case "\x1B[?25h": // show the cursor
|
||||
case "\x1B(B": // set united states g0 character set
|
||||
break;
|
||||
case "\x1BE": // Move to next line
|
||||
$this->newLine();
|
||||
$this->x = 0;
|
||||
break;
|
||||
default:
|
||||
switch (true) {
|
||||
case preg_match('#\x1B\[(\d+)B#', $this->ansi, $match): // Move cursor down n lines
|
||||
$this->old_y = $this->y;
|
||||
$this->y += (int) $match[1];
|
||||
break;
|
||||
case preg_match('#\x1B\[(\d+);(\d+)H#', $this->ansi, $match): // Move cursor to screen location v,h
|
||||
$this->old_x = $this->x;
|
||||
$this->old_y = $this->y;
|
||||
$this->x = $match[2] - 1;
|
||||
$this->y = (int) $match[1] - 1;
|
||||
break;
|
||||
case preg_match('#\x1B\[(\d+)C#', $this->ansi, $match): // Move cursor right n lines
|
||||
$this->old_x = $this->x;
|
||||
$this->x += $match[1];
|
||||
break;
|
||||
case preg_match('#\x1B\[(\d+)D#', $this->ansi, $match): // Move cursor left n lines
|
||||
$this->old_x = $this->x;
|
||||
$this->x -= $match[1];
|
||||
if ($this->x < 0) {
|
||||
$this->x = 0;
|
||||
}
|
||||
break;
|
||||
case preg_match('#\x1B\[(\d+);(\d+)r#', $this->ansi, $match): // Set top and bottom lines of a window
|
||||
break;
|
||||
case preg_match('#\x1B\[(\d*(?:;\d*)*)m#', $this->ansi, $match): // character attributes
|
||||
$attr_cell = &$this->attr_cell;
|
||||
$mods = explode(';', $match[1]);
|
||||
foreach ($mods as $mod) {
|
||||
switch ($mod) {
|
||||
case '':
|
||||
case '0': // Turn off character attributes
|
||||
$attr_cell = clone $this->base_attr_cell;
|
||||
break;
|
||||
case '1': // Turn bold mode on
|
||||
$attr_cell->bold = true;
|
||||
break;
|
||||
case '4': // Turn underline mode on
|
||||
$attr_cell->underline = true;
|
||||
break;
|
||||
case '5': // Turn blinking mode on
|
||||
$attr_cell->blink = true;
|
||||
break;
|
||||
case '7': // Turn reverse video on
|
||||
$attr_cell->reverse = !$attr_cell->reverse;
|
||||
$temp = $attr_cell->background;
|
||||
$attr_cell->background = $attr_cell->foreground;
|
||||
$attr_cell->foreground = $temp;
|
||||
break;
|
||||
default: // set colors
|
||||
//$front = $attr_cell->reverse ? &$attr_cell->background : &$attr_cell->foreground;
|
||||
$front = &$attr_cell->{ $attr_cell->reverse ? 'background' : 'foreground' };
|
||||
//$back = $attr_cell->reverse ? &$attr_cell->foreground : &$attr_cell->background;
|
||||
$back = &$attr_cell->{ $attr_cell->reverse ? 'foreground' : 'background' };
|
||||
switch ($mod) {
|
||||
// @codingStandardsIgnoreStart
|
||||
case '30': $front = 'black'; break;
|
||||
case '31': $front = 'red'; break;
|
||||
case '32': $front = 'green'; break;
|
||||
case '33': $front = 'yellow'; break;
|
||||
case '34': $front = 'blue'; break;
|
||||
case '35': $front = 'magenta'; break;
|
||||
case '36': $front = 'cyan'; break;
|
||||
case '37': $front = 'white'; break;
|
||||
|
||||
case '40': $back = 'black'; break;
|
||||
case '41': $back = 'red'; break;
|
||||
case '42': $back = 'green'; break;
|
||||
case '43': $back = 'yellow'; break;
|
||||
case '44': $back = 'blue'; break;
|
||||
case '45': $back = 'magenta'; break;
|
||||
case '46': $back = 'cyan'; break;
|
||||
case '47': $back = 'white'; break;
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
default:
|
||||
//user_error('Unsupported attribute: ' . $mod);
|
||||
$this->ansi = '';
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
//user_error("{$this->ansi} is unsupported\r\n");
|
||||
}
|
||||
}
|
||||
$this->ansi = '';
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->tokenization[count($this->tokenization) - 1] .= $source[$i];
|
||||
switch ($source[$i]) {
|
||||
case "\r":
|
||||
$this->x = 0;
|
||||
break;
|
||||
case "\n":
|
||||
$this->newLine();
|
||||
break;
|
||||
case "\x08": // backspace
|
||||
if ($this->x) {
|
||||
$this->x--;
|
||||
$this->attrs[$this->y][$this->x] = clone $this->base_attr_cell;
|
||||
$this->screen[$this->y] = substr_replace(
|
||||
$this->screen[$this->y],
|
||||
$source[$i],
|
||||
$this->x,
|
||||
1
|
||||
);
|
||||
}
|
||||
break;
|
||||
case "\x0F": // shift
|
||||
break;
|
||||
case "\x1B": // start ANSI escape code
|
||||
$this->tokenization[count($this->tokenization) - 1] = substr($this->tokenization[count($this->tokenization) - 1], 0, -1);
|
||||
//if (!strlen($this->tokenization[count($this->tokenization) - 1])) {
|
||||
// array_pop($this->tokenization);
|
||||
//}
|
||||
$this->ansi .= "\x1B";
|
||||
break;
|
||||
default:
|
||||
$this->attrs[$this->y][$this->x] = clone $this->attr_cell;
|
||||
if ($this->x > strlen($this->screen[$this->y])) {
|
||||
$this->screen[$this->y] = str_repeat(' ', $this->x);
|
||||
}
|
||||
$this->screen[$this->y] = substr_replace(
|
||||
$this->screen[$this->y],
|
||||
$source[$i],
|
||||
$this->x,
|
||||
1
|
||||
);
|
||||
|
||||
if ($this->x > $this->max_x) {
|
||||
$this->x = 0;
|
||||
$this->newLine();
|
||||
} else {
|
||||
$this->x++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new line
|
||||
*
|
||||
* Also update the $this->screen and $this->history buffers
|
||||
*/
|
||||
private function newLine(): void
|
||||
{
|
||||
//if ($this->y < $this->max_y) {
|
||||
// $this->y++;
|
||||
//}
|
||||
|
||||
while ($this->y >= $this->max_y) {
|
||||
$this->history = array_merge($this->history, [array_shift($this->screen)]);
|
||||
$this->screen[] = '';
|
||||
|
||||
$this->history_attrs = array_merge($this->history_attrs, [array_shift($this->attrs)]);
|
||||
$this->attrs[] = $this->attr_row;
|
||||
|
||||
if (count($this->history) >= $this->max_history) {
|
||||
array_shift($this->history);
|
||||
array_shift($this->history_attrs);
|
||||
}
|
||||
|
||||
$this->y--;
|
||||
}
|
||||
$this->y++;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current coordinate without preformating
|
||||
*/
|
||||
private function processCoordinate(\stdClass $last_attr, \stdClass $cur_attr, string $char): string
|
||||
{
|
||||
$output = '';
|
||||
|
||||
if ($last_attr != $cur_attr) {
|
||||
$close = $open = '';
|
||||
if ($last_attr->foreground != $cur_attr->foreground) {
|
||||
if ($cur_attr->foreground != 'white') {
|
||||
$open .= '<span style="color: ' . $cur_attr->foreground . '">';
|
||||
}
|
||||
if ($last_attr->foreground != 'white') {
|
||||
$close = '</span>' . $close;
|
||||
}
|
||||
}
|
||||
if ($last_attr->background != $cur_attr->background) {
|
||||
if ($cur_attr->background != 'black') {
|
||||
$open .= '<span style="background: ' . $cur_attr->background . '">';
|
||||
}
|
||||
if ($last_attr->background != 'black') {
|
||||
$close = '</span>' . $close;
|
||||
}
|
||||
}
|
||||
if ($last_attr->bold != $cur_attr->bold) {
|
||||
if ($cur_attr->bold) {
|
||||
$open .= '<b>';
|
||||
} else {
|
||||
$close = '</b>' . $close;
|
||||
}
|
||||
}
|
||||
if ($last_attr->underline != $cur_attr->underline) {
|
||||
if ($cur_attr->underline) {
|
||||
$open .= '<u>';
|
||||
} else {
|
||||
$close = '</u>' . $close;
|
||||
}
|
||||
}
|
||||
if ($last_attr->blink != $cur_attr->blink) {
|
||||
if ($cur_attr->blink) {
|
||||
$open .= '<blink>';
|
||||
} else {
|
||||
$close = '</blink>' . $close;
|
||||
}
|
||||
}
|
||||
$output .= $close . $open;
|
||||
}
|
||||
|
||||
$output .= htmlspecialchars($char);
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current screen without preformating
|
||||
*/
|
||||
private function getScreenHelper(): string
|
||||
{
|
||||
$output = '';
|
||||
$last_attr = $this->base_attr_cell;
|
||||
for ($i = 0; $i <= $this->max_y; $i++) {
|
||||
for ($j = 0; $j <= $this->max_x; $j++) {
|
||||
$cur_attr = $this->attrs[$i][$j];
|
||||
$output .= $this->processCoordinate($last_attr, $cur_attr, $this->screen[$i][$j] ?? '');
|
||||
$last_attr = $this->attrs[$i][$j];
|
||||
}
|
||||
$output .= "\r\n";
|
||||
}
|
||||
$output = substr($output, 0, -2);
|
||||
// close any remaining open tags
|
||||
$output .= $this->processCoordinate($last_attr, $this->base_attr_cell, '');
|
||||
return rtrim($output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current screen
|
||||
*/
|
||||
public function getScreen(): string
|
||||
{
|
||||
return '<pre width="' . ($this->max_x + 1) . '" style="color: white; background: black">' . $this->getScreenHelper() . '</pre>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current screen and the x previous lines
|
||||
*/
|
||||
public function getHistory(): string
|
||||
{
|
||||
$scrollback = '';
|
||||
$last_attr = $this->base_attr_cell;
|
||||
for ($i = 0; $i < count($this->history); $i++) {
|
||||
for ($j = 0; $j <= $this->max_x + 1; $j++) {
|
||||
$cur_attr = $this->history_attrs[$i][$j];
|
||||
$scrollback .= $this->processCoordinate($last_attr, $cur_attr, $this->history[$i][$j] ?? '');
|
||||
$last_attr = $this->history_attrs[$i][$j];
|
||||
}
|
||||
$scrollback .= "\r\n";
|
||||
}
|
||||
$base_attr_cell = $this->base_attr_cell;
|
||||
$this->base_attr_cell = $last_attr;
|
||||
$scrollback .= $this->getScreen();
|
||||
$this->base_attr_cell = $base_attr_cell;
|
||||
|
||||
return '<pre width="' . ($this->max_x + 1) . '" style="color: white; background: black">' . $scrollback . '</span></pre>';
|
||||
}
|
||||
}
|
||||
1478
qa-tool/htdocs/oidc/phpseclib/File/ASN1.php
Normal file
1478
qa-tool/htdocs/oidc/phpseclib/File/ASN1.php
Normal file
File diff suppressed because it is too large
Load Diff
44
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Element.php
Normal file
44
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Element.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ASN.1 Raw Element
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2012 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ASN.1 Raw Element
|
||||
*
|
||||
* An ASN.1 ANY mapping will return an ASN1\Element object. Use of this object
|
||||
* will also bypass the normal encoding rules in ASN1::encodeDER()
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
class Element
|
||||
{
|
||||
/**
|
||||
* Raw element value
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $element;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @return Element
|
||||
*/
|
||||
public function __construct(string $encoded)
|
||||
{
|
||||
$this->element = $encoded;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AccessDescription
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AccessDescription
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AccessDescription
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'accessMethod' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'accessLocation' => GeneralName::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AdministrationDomainName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AdministrationDomainName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AdministrationDomainName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
// if class isn't present it's assumed to be \phpseclib3\File\ASN1::CLASS_UNIVERSAL or
|
||||
// (if constant is present) \phpseclib3\File\ASN1::CLASS_CONTEXT_SPECIFIC
|
||||
'class' => ASN1::CLASS_APPLICATION,
|
||||
'cast' => 2,
|
||||
'children' => [
|
||||
'numeric' => ['type' => ASN1::TYPE_NUMERIC_STRING],
|
||||
'printable' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AlgorithmIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AlgorithmIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AlgorithmIdentifier
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'algorithm' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'parameters' => [
|
||||
'type' => ASN1::TYPE_ANY,
|
||||
'optional' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
39
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/AnotherName.php
Normal file
39
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/AnotherName.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AnotherName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AnotherName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AnotherName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'type-id' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'value' => [
|
||||
'type' => ASN1::TYPE_ANY,
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
39
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Attribute.php
Normal file
39
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Attribute.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Attribute
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Attribute
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Attribute
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'type' => AttributeType::MAP,
|
||||
'value' => [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => AttributeValue::MAP,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AttributeType
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeType
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeType
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OBJECT_IDENTIFIER];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AttributeTypeAndValue
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeTypeAndValue
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeTypeAndValue
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'type' => AttributeType::MAP,
|
||||
'value' => AttributeValue::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AttributeValue
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AttributeValue
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AttributeValue
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_ANY];
|
||||
}
|
||||
33
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Attributes.php
Normal file
33
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Attributes.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Attributes
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Attributes
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Attributes
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => Attribute::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AuthorityInfoAccessSyntax
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AuthorityInfoAccessSyntax
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AuthorityInfoAccessSyntax
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => AccessDescription::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AuthorityKeyIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* AuthorityKeyIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class AuthorityKeyIdentifier
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'keyIdentifier' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + KeyIdentifier::MAP,
|
||||
'authorityCertIssuer' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + GeneralNames::MAP,
|
||||
'authorityCertSerialNumber' => [
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + CertificateSerialNumber::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BaseDistance
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* BaseDistance
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class BaseDistance
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_INTEGER];
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BasicConstraints
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* BasicConstraints
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class BasicConstraints
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'cA' => [
|
||||
'type' => ASN1::TYPE_BOOLEAN,
|
||||
'optional' => true,
|
||||
'default' => false,
|
||||
],
|
||||
'pathLenConstraint' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'optional' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BuiltInDomainDefinedAttribute
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* BuiltInDomainDefinedAttribute
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class BuiltInDomainDefinedAttribute
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'type' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
'value' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BuiltInDomainDefinedAttributes
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* BuiltInDomainDefinedAttributes
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class BuiltInDomainDefinedAttributes
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => 4, // ub-domain-defined-attributes
|
||||
'children' => BuiltInDomainDefinedAttribute::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BuiltInStandardAttributes
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* BuiltInStandardAttributes
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class BuiltInStandardAttributes
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'country-name' => ['optional' => true] + CountryName::MAP,
|
||||
'administration-domain-name' => ['optional' => true] + AdministrationDomainName::MAP,
|
||||
'network-address' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + NetworkAddress::MAP,
|
||||
'terminal-identifier' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + TerminalIdentifier::MAP,
|
||||
'private-domain-name' => [
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
] + PrivateDomainName::MAP,
|
||||
'organization-name' => [
|
||||
'constant' => 3,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + OrganizationName::MAP,
|
||||
'numeric-user-identifier' => [
|
||||
'constant' => 4,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + NumericUserIdentifier::MAP,
|
||||
'personal-name' => [
|
||||
'constant' => 5,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + PersonalName::MAP,
|
||||
'organizational-unit-names' => [
|
||||
'constant' => 6,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + OrganizationalUnitNames::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CPSuri.php
Normal file
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CPSuri.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CPSuri
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CPSuri
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CPSuri
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_IA5_STRING];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CRLDistributionPoints
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CRLDistributionPoints
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CRLDistributionPoints
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => DistributionPoint::MAP,
|
||||
];
|
||||
}
|
||||
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CRLNumber.php
Normal file
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CRLNumber.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CRLNumber
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CRLNumber
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CRLNumber
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_INTEGER];
|
||||
}
|
||||
43
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CRLReason.php
Normal file
43
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CRLReason.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CRLReason
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CRLReason
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CRLReason
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_ENUMERATED,
|
||||
'mapping' => [
|
||||
'unspecified',
|
||||
'keyCompromise',
|
||||
'cACompromise',
|
||||
'affiliationChanged',
|
||||
'superseded',
|
||||
'cessationOfOperation',
|
||||
'certificateHold',
|
||||
// Value 7 is not used.
|
||||
8 => 'removeFromCRL',
|
||||
'privilegeWithdrawn',
|
||||
'aACompromise',
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertPolicyId
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertPolicyId
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertPolicyId
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OBJECT_IDENTIFIER];
|
||||
}
|
||||
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Certificate.php
Normal file
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Certificate.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Certificate
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Certificate
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Certificate
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'tbsCertificate' => TBSCertificate::MAP,
|
||||
'signatureAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'signature' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertificateIssuer
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
/**
|
||||
* CertificateIssuer
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificateIssuer
|
||||
{
|
||||
public const MAP = GeneralNames::MAP;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertificateList
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificateList
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificateList
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'tbsCertList' => TBSCertList::MAP,
|
||||
'signatureAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'signature' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertificatePolicies
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificatePolicies
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificatePolicies
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => PolicyInformation::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertificateSerialNumber
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificateSerialNumber
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificateSerialNumber
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_INTEGER];
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertificationRequest
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificationRequest
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificationRequest
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'certificationRequestInfo' => CertificationRequestInfo::MAP,
|
||||
'signatureAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'signature' => ['type' => ASN1::TYPE_BIT_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CertificationRequestInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CertificationRequestInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CertificationRequestInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => ['v1'],
|
||||
],
|
||||
'subject' => Name::MAP,
|
||||
'subjectPKInfo' => SubjectPublicKeyInfo::MAP,
|
||||
'attributes' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + Attributes::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Characteristic_two
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Characteristic_two
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Characteristic_two
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'm' => ['type' => ASN1::TYPE_INTEGER], // field size 2**m
|
||||
'basis' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'parameters' => [
|
||||
'type' => ASN1::TYPE_ANY,
|
||||
'optional' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
38
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CountryName.php
Normal file
38
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/CountryName.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* CountryName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* CountryName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class CountryName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
// if class isn't present it's assumed to be \phpseclib3\File\ASN1::CLASS_UNIVERSAL or
|
||||
// (if constant is present) \phpseclib3\File\ASN1::CLASS_CONTEXT_SPECIFIC
|
||||
'class' => ASN1::CLASS_APPLICATION,
|
||||
'cast' => 1,
|
||||
'children' => [
|
||||
'x121-dcc-code' => ['type' => ASN1::TYPE_NUMERIC_STRING],
|
||||
'iso-3166-alpha2-code' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
38
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Curve.php
Normal file
38
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Curve.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Curve
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Curve
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Curve
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'a' => FieldElement::MAP,
|
||||
'b' => FieldElement::MAP,
|
||||
'seed' => [
|
||||
'type' => ASN1::TYPE_BIT_STRING,
|
||||
'optional' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
40
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DHParameter.php
Normal file
40
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DHParameter.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DHParameter
|
||||
*
|
||||
* From: https://www.teletrust.de/fileadmin/files/oid/oid_pkcs-3v1-4.pdf#page=6
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DHParameter
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DHParameter
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'prime' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'base' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'privateValueLength' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'optional' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DSAParams.php
Normal file
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DSAParams.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DSAParams
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DSAParams
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DSAParams
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'p' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'q' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'g' => ['type' => ASN1::TYPE_INTEGER],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DSAPrivateKey
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DSAPrivateKey
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DSAPrivateKey
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'p' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'q' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'g' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'y' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'x' => ['type' => ASN1::TYPE_INTEGER],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DSAPublicKey
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DSAPublicKey
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DSAPublicKey
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_INTEGER];
|
||||
}
|
||||
36
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DigestInfo.php
Normal file
36
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DigestInfo.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DigestInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DigestInfo
|
||||
*
|
||||
* from https://tools.ietf.org/html/rfc2898#appendix-A.3
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DigestInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'digestAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'digest' => ['type' => ASN1::TYPE_OCTET_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DirectoryString
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DirectoryString
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DirectoryString
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'teletexString' => ['type' => ASN1::TYPE_TELETEX_STRING],
|
||||
'printableString' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
'universalString' => ['type' => ASN1::TYPE_UNIVERSAL_STRING],
|
||||
'utf8String' => ['type' => ASN1::TYPE_UTF8_STRING],
|
||||
'bmpString' => ['type' => ASN1::TYPE_BMP_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
36
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DisplayText.php
Normal file
36
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DisplayText.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DisplayText
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DisplayText
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DisplayText
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'ia5String' => ['type' => ASN1::TYPE_IA5_STRING],
|
||||
'visibleString' => ['type' => ASN1::TYPE_VISIBLE_STRING],
|
||||
'bmpString' => ['type' => ASN1::TYPE_BMP_STRING],
|
||||
'utf8String' => ['type' => ASN1::TYPE_UTF8_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DistributionPoint
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DistributionPoint
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DistributionPoint
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'distributionPoint' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
] + DistributionPointName::MAP,
|
||||
'reasons' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + ReasonFlags::MAP,
|
||||
'cRLIssuer' => [
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + GeneralNames::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DistributionPointName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DistributionPointName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DistributionPointName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'fullName' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + GeneralNames::MAP,
|
||||
'nameRelativeToCRLIssuer' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + RelativeDistinguishedName::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
34
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DssSigValue.php
Normal file
34
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/DssSigValue.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* DssSigValue
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* DssSigValue
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class DssSigValue
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'r' => ['type' => ASN1::TYPE_INTEGER],
|
||||
's' => ['type' => ASN1::TYPE_INTEGER],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ECParameters
|
||||
*
|
||||
* From: https://tools.ietf.org/html/rfc5915
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ECParameters
|
||||
*
|
||||
* ECParameters ::= CHOICE {
|
||||
* namedCurve OBJECT IDENTIFIER
|
||||
* -- implicitCurve NULL
|
||||
* -- specifiedCurve SpecifiedECDomain
|
||||
* }
|
||||
* -- implicitCurve and specifiedCurve MUST NOT be used in PKIX.
|
||||
* -- Details for SpecifiedECDomain can be found in [X9.62].
|
||||
* -- Any future additions to this CHOICE should be coordinated
|
||||
* -- with ANSI X9.
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ECParameters
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'namedCurve' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'implicitCurve' => ['type' => ASN1::TYPE_NULL],
|
||||
'specifiedCurve' => SpecifiedECDomain::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/ECPoint.php
Normal file
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/ECPoint.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ECPoint
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ECPoint
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ECPoint
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ECPrivateKey
|
||||
*
|
||||
* From: https://tools.ietf.org/html/rfc5915
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ECPrivateKey
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ECPrivateKey
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => [1 => 'ecPrivkeyVer1'],
|
||||
],
|
||||
'privateKey' => ['type' => ASN1::TYPE_OCTET_STRING],
|
||||
'parameters' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
] + ECParameters::MAP,
|
||||
'publicKey' => [
|
||||
'type' => ASN1::TYPE_BIT_STRING,
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* EDIPartyName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* EDIPartyName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class EDIPartyName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'nameAssigner' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + DirectoryString::MAP,
|
||||
// partyName is technically required but \phpseclib3\File\ASN1 doesn't currently support non-optional constants and
|
||||
// setting it to optional gets the job done in any event.
|
||||
'partyName' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + DirectoryString::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* EcdsaSigValue
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* EcdsaSigValue
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class EcdsaSigValue
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'r' => ['type' => ASN1::TYPE_INTEGER],
|
||||
's' => ['type' => ASN1::TYPE_INTEGER],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* EncryptedData
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* EncryptedData
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class EncryptedData
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* EncryptedPrivateKeyInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* EncryptedPrivateKeyInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class EncryptedPrivateKeyInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'encryptionAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'encryptedData' => EncryptedData::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ExtKeyUsageSyntax
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ExtKeyUsageSyntax
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ExtKeyUsageSyntax
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => KeyPurposeId::MAP,
|
||||
];
|
||||
}
|
||||
45
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Extension.php
Normal file
45
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Extension.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Extension
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Extension
|
||||
*
|
||||
* A certificate using system MUST reject the certificate if it encounters
|
||||
* a critical extension it does not recognize; however, a non-critical
|
||||
* extension may be ignored if it is not recognized.
|
||||
*
|
||||
* http://tools.ietf.org/html/rfc5280#section-4.2
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Extension
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'extnId' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'critical' => [
|
||||
'type' => ASN1::TYPE_BOOLEAN,
|
||||
'optional' => true,
|
||||
'default' => false,
|
||||
],
|
||||
'extnValue' => ['type' => ASN1::TYPE_OCTET_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ExtensionAttribute
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ExtensionAttribute
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ExtensionAttribute
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'extension-attribute-type' => [
|
||||
'type' => ASN1::TYPE_PRINTABLE_STRING,
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'extension-attribute-value' => [
|
||||
'type' => ASN1::TYPE_ANY,
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ExtensionAttributes
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ExtensionAttributes
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ExtensionAttributes
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'min' => 1,
|
||||
'max' => 256, // ub-extension-attributes
|
||||
'children' => ExtensionAttribute::MAP,
|
||||
];
|
||||
}
|
||||
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Extensions.php
Normal file
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Extensions.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Extensions
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Extensions
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Extensions
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
// technically, it's MAX, but we'll assume anything < 0 is MAX
|
||||
'max' => -1,
|
||||
// if 'children' isn't an array then 'min' and 'max' must be defined
|
||||
'children' => Extension::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* FieldElement
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* FieldElement
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class FieldElement
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
||||
37
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/FieldID.php
Normal file
37
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/FieldID.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* FieldID
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* FieldID
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class FieldID
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'fieldType' => ['type' => ASN1::TYPE_OBJECT_IDENTIFIER],
|
||||
'parameters' => [
|
||||
'type' => ASN1::TYPE_ANY,
|
||||
'optional' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
82
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/GeneralName.php
Normal file
82
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/GeneralName.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* GeneralName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* GeneralName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class GeneralName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'otherName' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + AnotherName::MAP,
|
||||
'rfc822Name' => [
|
||||
'type' => ASN1::TYPE_IA5_STRING,
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'dNSName' => [
|
||||
'type' => ASN1::TYPE_IA5_STRING,
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'x400Address' => [
|
||||
'constant' => 3,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + ORAddress::MAP,
|
||||
'directoryName' => [
|
||||
'constant' => 4,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
] + Name::MAP,
|
||||
'ediPartyName' => [
|
||||
'constant' => 5,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + EDIPartyName::MAP,
|
||||
'uniformResourceIdentifier' => [
|
||||
'type' => ASN1::TYPE_IA5_STRING,
|
||||
'constant' => 6,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'iPAddress' => [
|
||||
'type' => ASN1::TYPE_OCTET_STRING,
|
||||
'constant' => 7,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'registeredID' => [
|
||||
'type' => ASN1::TYPE_OBJECT_IDENTIFIER,
|
||||
'constant' => 8,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* GeneralNames
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* GeneralNames
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class GeneralNames
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => GeneralName::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* GeneralSubtree
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* GeneralSubtree
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class GeneralSubtree
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'base' => GeneralName::MAP,
|
||||
'minimum' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
'default' => '0',
|
||||
] + BaseDistance::MAP,
|
||||
'maximum' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + BaseDistance::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* GeneralSubtrees
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* GeneralSubtrees
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class GeneralSubtrees
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => GeneralSubtree::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* HashAglorithm
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
/**
|
||||
* HashAglorithm
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class HashAlgorithm
|
||||
{
|
||||
public const MAP = AlgorithmIdentifier::MAP;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* HoldInstructionCode
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* HoldInstructionCode
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class HoldInstructionCode
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OBJECT_IDENTIFIER];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* InvalidityDate
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* InvalidityDate
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class InvalidityDate
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_GENERALIZED_TIME];
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* IssuerAltName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
/**
|
||||
* IssuerAltName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class IssuerAltName
|
||||
{
|
||||
public const MAP = GeneralNames::MAP;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* IssuingDistributionPoint
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* IssuingDistributionPoint
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class IssuingDistributionPoint
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'distributionPoint' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'explicit' => true,
|
||||
] + DistributionPointName::MAP,
|
||||
'onlyContainsUserCerts' => [
|
||||
'type' => ASN1::TYPE_BOOLEAN,
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'default' => false,
|
||||
'implicit' => true,
|
||||
],
|
||||
'onlyContainsCACerts' => [
|
||||
'type' => ASN1::TYPE_BOOLEAN,
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'default' => false,
|
||||
'implicit' => true,
|
||||
],
|
||||
'onlySomeReasons' => [
|
||||
'constant' => 3,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + ReasonFlags::MAP,
|
||||
'indirectCRL' => [
|
||||
'type' => ASN1::TYPE_BOOLEAN,
|
||||
'constant' => 4,
|
||||
'optional' => true,
|
||||
'default' => false,
|
||||
'implicit' => true,
|
||||
],
|
||||
'onlyContainsAttributeCerts' => [
|
||||
'type' => ASN1::TYPE_BOOLEAN,
|
||||
'constant' => 5,
|
||||
'optional' => true,
|
||||
'default' => false,
|
||||
'implicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* KeyIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* KeyIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class KeyIdentifier
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* KeyPurposeId
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* KeyPurposeId
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class KeyPurposeId
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OBJECT_IDENTIFIER];
|
||||
}
|
||||
41
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/KeyUsage.php
Normal file
41
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/KeyUsage.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* KeyUsage
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* KeyUsage
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class KeyUsage
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_BIT_STRING,
|
||||
'mapping' => [
|
||||
'digitalSignature',
|
||||
'nonRepudiation',
|
||||
'keyEncipherment',
|
||||
'dataEncipherment',
|
||||
'keyAgreement',
|
||||
'keyCertSign',
|
||||
'cRLSign',
|
||||
'encipherOnly',
|
||||
'decipherOnly',
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* MaskGenAglorithm
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
/**
|
||||
* MaskGenAglorithm
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class MaskGenAlgorithm
|
||||
{
|
||||
public const MAP = AlgorithmIdentifier::MAP;
|
||||
}
|
||||
33
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Name.php
Normal file
33
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Name.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Name
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Name
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Name
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'rdnSequence' => RDNSequence::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* NameConstraints
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* NameConstraints
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class NameConstraints
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'permittedSubtrees' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + GeneralSubtrees::MAP,
|
||||
'excludedSubtrees' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + GeneralSubtrees::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* NetworkAddress
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* NetworkAddress
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class NetworkAddress
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_NUMERIC_STRING];
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* NoticeReference
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* NoticeReference
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class NoticeReference
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'organization' => DisplayText::MAP,
|
||||
'noticeNumbers' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => 200,
|
||||
'children' => ['type' => ASN1::TYPE_INTEGER],
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* NumericUserIdentifier
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* NumericUserIdentifier
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class NumericUserIdentifier
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_NUMERIC_STRING];
|
||||
}
|
||||
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/ORAddress.php
Normal file
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/ORAddress.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ORAddress
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* ORAddress
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class ORAddress
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'built-in-standard-attributes' => BuiltInStandardAttributes::MAP,
|
||||
'built-in-domain-defined-attributes' => ['optional' => true] + BuiltInDomainDefinedAttributes::MAP,
|
||||
'extension-attributes' => ['optional' => true] + ExtensionAttributes::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* OneAsymmetricKey
|
||||
*
|
||||
* See https://tools.ietf.org/html/rfc5958
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OneAsymmetricKey
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OneAsymmetricKey
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => ['v1', 'v2'],
|
||||
],
|
||||
'privateKeyAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'privateKey' => PrivateKey::MAP,
|
||||
'attributes' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + Attributes::MAP,
|
||||
'publicKey' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + PublicKey::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* OrganizationName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OrganizationName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OrganizationName
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_PRINTABLE_STRING];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* OrganizationalUnitNames
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OrganizationalUnitNames
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OrganizationalUnitNames
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => 4, // ub-organizational-units
|
||||
'children' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* OtherPrimeInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OtherPrimeInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OtherPrimeInfo
|
||||
{
|
||||
// version must be multi if otherPrimeInfos present
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'prime' => ['type' => ASN1::TYPE_INTEGER], // ri
|
||||
'exponent' => ['type' => ASN1::TYPE_INTEGER], // di
|
||||
'coefficient' => ['type' => ASN1::TYPE_INTEGER], // ti
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* OtherPrimeInfos
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* OtherPrimeInfos
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class OtherPrimeInfos
|
||||
{
|
||||
// version must be multi if otherPrimeInfos present
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => OtherPrimeInfo::MAP,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PBEParameter
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PBEParameter
|
||||
*
|
||||
* from https://tools.ietf.org/html/rfc2898#appendix-A.3
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PBEParameter
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'salt' => ['type' => ASN1::TYPE_OCTET_STRING],
|
||||
'iterationCount' => ['type' => ASN1::TYPE_INTEGER],
|
||||
],
|
||||
];
|
||||
}
|
||||
36
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PBES2params.php
Normal file
36
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PBES2params.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PBES2params
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PBES2params
|
||||
*
|
||||
* from https://tools.ietf.org/html/rfc2898#appendix-A.3
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PBES2params
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'keyDerivationFunc' => AlgorithmIdentifier::MAP,
|
||||
'encryptionScheme' => AlgorithmIdentifier::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PBKDF2params
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PBKDF2params
|
||||
*
|
||||
* from https://tools.ietf.org/html/rfc2898#appendix-A.3
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PBKDF2params
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
// technically, this is a CHOICE in RFC2898 but the other "choice" is, currently, more of a placeholder
|
||||
// in the RFC
|
||||
'salt' => ['type' => ASN1::TYPE_OCTET_STRING],
|
||||
'iterationCount' => ['type' => ASN1::TYPE_INTEGER],
|
||||
'keyLength' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'optional' => true,
|
||||
],
|
||||
'prf' => AlgorithmIdentifier::MAP + ['optional' => true],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PBMAC1params
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PBMAC1params
|
||||
*
|
||||
* from https://tools.ietf.org/html/rfc2898#appendix-A.3
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PBMAC1params
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'keyDerivationFunc' => AlgorithmIdentifier::MAP,
|
||||
'messageAuthScheme' => AlgorithmIdentifier::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
34
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PKCS9String.php
Normal file
34
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PKCS9String.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PKCS9String
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PKCS9String
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PKCS9String
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'ia5String' => ['type' => ASN1::TYPE_IA5_STRING],
|
||||
'directoryString' => DirectoryString::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Pentanomial.php
Normal file
35
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Pentanomial.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Pentanomial
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Pentanomial
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Pentanomial
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'k1' => ['type' => ASN1::TYPE_INTEGER], // k1 > 0
|
||||
'k2' => ['type' => ASN1::TYPE_INTEGER], // k2 > k1
|
||||
'k3' => ['type' => ASN1::TYPE_INTEGER], // k3 > h2
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PersonalName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PersonalName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PersonalName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SET,
|
||||
'children' => [
|
||||
'surname' => [
|
||||
'type' => ASN1::TYPE_PRINTABLE_STRING,
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'given-name' => [
|
||||
'type' => ASN1::TYPE_PRINTABLE_STRING,
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'initials' => [
|
||||
'type' => ASN1::TYPE_PRINTABLE_STRING,
|
||||
'constant' => 2,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
'generation-qualifier' => [
|
||||
'type' => ASN1::TYPE_PRINTABLE_STRING,
|
||||
'constant' => 3,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PolicyInformation
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PolicyInformation
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PolicyInformation
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'policyIdentifier' => CertPolicyId::MAP,
|
||||
'policyQualifiers' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 0,
|
||||
'max' => -1,
|
||||
'optional' => true,
|
||||
'children' => PolicyQualifierInfo::MAP,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PolicyMappings
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PolicyMappings
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PolicyMappings
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'issuerDomainPolicy' => CertPolicyId::MAP,
|
||||
'subjectDomainPolicy' => CertPolicyId::MAP,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PolicyQualifierId
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PolicyQualifierId
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PolicyQualifierId
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OBJECT_IDENTIFIER];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PolicyQualifierInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PolicyQualifierInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PolicyQualifierInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'policyQualifierId' => PolicyQualifierId::MAP,
|
||||
'qualifier' => ['type' => ASN1::TYPE_ANY],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PostalAddress
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PostalAddress
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PostalAddress
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'optional' => true,
|
||||
'min' => 1,
|
||||
'max' => -1,
|
||||
'children' => DirectoryString::MAP,
|
||||
];
|
||||
}
|
||||
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Prime_p.php
Normal file
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/Prime_p.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Prime_p
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* Prime_p
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class Prime_p
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_INTEGER];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PrivateDomainName
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PrivateDomainName
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PrivateDomainName
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_CHOICE,
|
||||
'children' => [
|
||||
'numeric' => ['type' => ASN1::TYPE_NUMERIC_STRING],
|
||||
'printable' => ['type' => ASN1::TYPE_PRINTABLE_STRING],
|
||||
],
|
||||
];
|
||||
}
|
||||
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PrivateKey.php
Normal file
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PrivateKey.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PrivateKey
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PrivateKey
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PrivateKey
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_OCTET_STRING];
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PrivateKeyInfo
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PrivateKeyInfo
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PrivateKeyInfo
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'version' => [
|
||||
'type' => ASN1::TYPE_INTEGER,
|
||||
'mapping' => ['v1'],
|
||||
],
|
||||
'privateKeyAlgorithm' => AlgorithmIdentifier::MAP,
|
||||
'privateKey' => PrivateKey::MAP,
|
||||
'attributes' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
] + Attributes::MAP,
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PrivateKeyUsagePeriod
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PrivateKeyUsagePeriod
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PrivateKeyUsagePeriod
|
||||
{
|
||||
public const MAP = [
|
||||
'type' => ASN1::TYPE_SEQUENCE,
|
||||
'children' => [
|
||||
'notBefore' => [
|
||||
'constant' => 0,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
'type' => ASN1::TYPE_GENERALIZED_TIME, ],
|
||||
'notAfter' => [
|
||||
'constant' => 1,
|
||||
'optional' => true,
|
||||
'implicit' => true,
|
||||
'type' => ASN1::TYPE_GENERALIZED_TIME, ],
|
||||
],
|
||||
];
|
||||
}
|
||||
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PublicKey.php
Normal file
28
qa-tool/htdocs/oidc/phpseclib/File/ASN1/Maps/PublicKey.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PublicKey
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright 2016 Jim Wigginton
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpseclib3\File\ASN1\Maps;
|
||||
|
||||
use phpseclib3\File\ASN1;
|
||||
|
||||
/**
|
||||
* PublicKey
|
||||
*
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
*/
|
||||
abstract class PublicKey
|
||||
{
|
||||
public const MAP = ['type' => ASN1::TYPE_BIT_STRING];
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user