An implementation SHOULD ignore any subpacket of a type that it does not
recognize.
This commit is contained in:
parent
da9ca4ca7d
commit
48ec28fef2
|
@ -450,7 +450,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
|
||||||
|
@ -509,7 +511,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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user