Permalink
Browse files

Implement OpenPGP_SignaturePacket_KeyExpirationTimePacket

  • Loading branch information...
1 parent 3862871 commit 92f73aee3d67bff54af4b5da53e8e60aaf84422f @singpolyma singpolyma committed with bendiken Apr 1, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/openpgp.php
View
@@ -647,7 +647,13 @@ class OpenPGP_SignaturePacket_RevocablePacket extends OpenPGP_SignaturePacket_Su
}
class OpenPGP_SignaturePacket_KeyExpirationTimePacket extends OpenPGP_SignaturePacket_Subpacket {
- // TODO
+ function read() {
+ $this->data = $this->read_timestamp();
+ }
+
+ function body() {
+ return pack('N', $this->data);
+ }
}
class OpenPGP_SignaturePacket_PreferredSymmetricAlgorithmsPacket extends OpenPGP_SignaturePacket_Subpacket {

0 comments on commit 92f73ae

Please sign in to comment.