2014-12-01 19:26:52 -08:00
|
|
|
<?php
|
|
|
|
/**
|
2014-12-03 08:57:41 -08:00
|
|
|
* Pure-PHP ASN.1 Parser
|
|
|
|
*
|
2015-04-02 05:57:52 -05:00
|
|
|
* PHP version 5
|
2014-12-03 08:57:41 -08:00
|
|
|
*
|
2014-12-01 19:26:52 -08:00
|
|
|
* @category File
|
2014-12-09 16:53:05 -08:00
|
|
|
* @package ASN1
|
2014-12-01 19:26:52 -08:00
|
|
|
* @author Jim Wigginton <terrafrost@php.net>
|
2014-12-10 00:07:46 +01:00
|
|
|
* @copyright 2012 Jim Wigginton
|
2014-12-01 19:26:52 -08:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
* @link http://phpseclib.sourceforge.net
|
|
|
|
*/
|
|
|
|
|
2014-12-09 16:53:05 -08:00
|
|
|
namespace phpseclib\File\ASN1;
|
|
|
|
|
2014-12-01 19:26:52 -08:00
|
|
|
/**
|
|
|
|
* ASN.1 Element
|
|
|
|
*
|
2014-12-09 16:53:05 -08:00
|
|
|
* Bypass normal encoding rules in phpseclib\File\ASN1::encodeDER()
|
2014-12-01 19:26:52 -08:00
|
|
|
*
|
2014-12-09 16:53:05 -08:00
|
|
|
* @package ASN1
|
2014-12-01 19:26:52 -08:00
|
|
|
* @author Jim Wigginton <terrafrost@php.net>
|
|
|
|
* @access public
|
|
|
|
*/
|
2014-12-09 16:53:05 -08:00
|
|
|
class Element
|
2014-12-01 19:26:52 -08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Raw element value
|
|
|
|
*
|
2016-04-10 11:30:59 -05:00
|
|
|
* @var string
|
2014-12-01 19:26:52 -08:00
|
|
|
* @access private
|
|
|
|
*/
|
|
|
|
var $element;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
2016-04-10 11:30:59 -05:00
|
|
|
* @param string $encoded
|
2014-12-09 16:53:05 -08:00
|
|
|
* @return \phpseclib\File\ASN1\Element
|
2014-12-01 19:26:52 -08:00
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
function __construct($encoded)
|
|
|
|
{
|
|
|
|
$this->element = $encoded;
|
|
|
|
}
|
2014-12-01 19:28:02 -08:00
|
|
|
}
|