Set tag on packet creation
This commit is contained in:
parent
1333a1a035
commit
355ea44301
@ -258,7 +258,9 @@ class OpenPGP_Packet {
|
|||||||
return array($tag, $head_length, $data_length);
|
return array($tag, $head_length, $data_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
function __construct() {}
|
function __construct() {
|
||||||
|
$this->tag = array_search(substr(substr(get_class($this), 8), 0, -6), self::$tags);
|
||||||
|
}
|
||||||
|
|
||||||
function read() {
|
function read() {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user