From 3c84dce8f969e77a32e4b9b40fc1191ade84e323 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 31 Mar 2010 14:25:21 -0500 Subject: [PATCH] LiteralDataPacket body --- lib/openpgp.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/openpgp.php b/lib/openpgp.php index db87478..c903bae 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -769,6 +769,10 @@ class OpenPGP_LiteralDataPacket extends OpenPGP_Packet { $this->timestamp = $this->read_timestamp(); $this->data = $this->read_bytes($this->size); } + + function body() { + return $this->format.chr(strlen($this->filename)).$this->filename.pack('N', $this->timestamp).$this->data; + } } /**