From e3eaf7e822c2bb13576c06b0b55d6a2500f3cf71 Mon Sep 17 00:00:00 2001 From: nahi Date: Sat, 6 Nov 2004 04:43:23 +0000 Subject: [PATCH] * Partial Body Lengths packet support for scanner, too. --- lib/pgp/packet/sigsubpacket/packet.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pgp/packet/sigsubpacket/packet.rb b/lib/pgp/packet/sigsubpacket/packet.rb index e32529c..317b388 100644 --- a/lib/pgp/packet/sigsubpacket/packet.rb +++ b/lib/pgp/packet/sigsubpacket/packet.rb @@ -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