Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implement to_bytes for OpenPGP_Message

  • Loading branch information...
commit 0a85e214a620f211d2d15ee31eb8a5d07eeae8cc 1 parent 355ea44
@singpolyma singpolyma authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/openpgp.php
View
8 lib/openpgp.php
@@ -141,6 +141,14 @@ function __construct(array $packets = array()) {
$this->packets = $packets;
}
+ function to_bytes() {
+ $bytes = '';
+ foreach($this as $p) {
+ $bytes .= $p->to_bytes();
+ }
+ return $bytes;
+ }
+
// IteratorAggregate interface
function getIterator() {
Please sign in to comment.
Something went wrong with that request. Please try again.