An implementation SHOULD ignore any subpacket of a type that it does not

recognize.
This commit is contained in:
PawelGorny 2014-03-24 21:36:57 +01:00
parent da9ca4ca7d
commit 48ec28fef2

View File

@ -450,7 +450,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
@ -509,7 +511,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);
}
};