Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I didn't track it all the way down, but there's an issue with browserify-zlib decrypting
our fake ZIP archives.  When the "flush" is sent with 0 in bytes, it returns a Z_BUF_ERROR,
as if it still wants more data.  I think it's safe to ignore this error, but we should recheck
this assumption.  If we turn out to be wrong, we might need to call into pako directly
as shown above.  Calling into pako directly has problems, though, since it will be included
in the node.js setting which will increase code bloat.
  • Loading branch information
maxtaco committed Aug 6, 2014
1 parent f83e395 commit 854df76
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 43 deletions.
33 changes: 17 additions & 16 deletions lib/keymanager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 70 additions & 23 deletions lib/openpgp/packet/compressed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/keymanager.iced
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ class KeyManager extends KeyFetcher

# Start from an armored PGP PUBLIC KEY BLOCK, and parse it into packets.
# Also works for an armored PGP PRIVATE KEY BLOCK
@import_from_armored_pgp : ({raw, asp}, cb) ->
@import_from_armored_pgp : ({armored, raw, asp}, cb) ->
raw or= armored
asp = ASP.make asp
warnings = null
ret = null
Expand Down
Loading

0 comments on commit 854df76

Please sign in to comment.