Skip to content

Commit

Permalink
* Partial Body Lengths packet support for scanner, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
nahi committed Nov 6, 2004
1 parent 9443be1 commit e3eaf7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pgp/packet/sigsubpacket/packet.rb
Expand Up @@ -121,7 +121,10 @@ def self.load(port)
end

def self.scan(port, io)
length = load_length_new(port)
length, partial = load_length_new(port)
if partial
raise "Partial Body Lengths not allowed"
end
type = load_type(port)
critical = (type & T_CRITICAL).nonzero?
type &= ~T_CRITICAL
Expand Down

0 comments on commit e3eaf7e

Please sign in to comment.