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