Merge pull request #202 from PawelGorny/fixSigUnknwTypeNotation

An implementation SHOULD ignore any subpacket of a type that it does not recognize
This commit is contained in:
Thomas Oberndörfer 2014-03-31 12:39:30 +02:00
commit 06adf49122

View File

@ -445,7 +445,9 @@ Signature.prototype.read_sub_packet = function (bytes) {
this.notation = this.notation || {}; this.notation = this.notation || {};
this.notation[name] = value; this.notation[name] = value;
} else throw new Error("Unsupported notation flag."); } else {
util.print_debug("Unsupported notation flag "+bytes.charCodeAt(mypos));
}
break; break;
case 21: case 21:
// Preferred Hash Algorithms // Preferred Hash Algorithms
@ -504,7 +506,7 @@ Signature.prototype.read_sub_packet = function (bytes) {
this.embeddedSignature.read(bytes.substr(mypos)); this.embeddedSignature.read(bytes.substr(mypos));
break; break;
default: default:
throw new Error("Unknown signature subpacket type " + type + " @:" + mypos); util.print_debug("Unknown signature subpacket type " + type + " @:" + mypos);
} }
}; };