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