Skip to content

Commit

Permalink
Fix upstream: symmetric session encrypt packet only has valid version…
Browse files Browse the repository at this point in the history
… of 4, not 3
  • Loading branch information
slusarz committed Apr 15, 2015
1 parent 075e1c2 commit cdfd6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions framework/Pgp/bundle/CHANGED
Expand Up @@ -5,6 +5,8 @@ List of changes from upstream sources:
Split output armor text every 76 characters (OpenPGP::enarmor()).
Fix computing signatures for v3 packets (OpenPGP_SignaturePacket#read()).
Add support for partial packet body lengths (OpenPGP_Packet::parse()).
Fix setting version in symmetric-key encrypted session key packet
(OpenPGP_SymmetricSessionKeyPacket#__construct()).

- vendor/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php

Expand Down
Expand Up @@ -1273,7 +1273,7 @@ function header_and_body() {
class OpenPGP_SymmetricSessionKeyPacket extends OpenPGP_Packet {
public $version, $symmetric_algorithm, $s2k, $encrypted_data;

function __construct($s2k=NULL, $encrypted_data='', $symmetric_algorithm=9, $version=3) {
function __construct($s2k=NULL, $encrypted_data='', $symmetric_algorithm=9, $version=4) {
parent::__construct();
$this->version = $version;
$this->symmetric_algorithm = $symmetric_algorithm;
Expand Down

0 comments on commit cdfd6b6

Please sign in to comment.