mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03:00
Cleanup OpenPGP.js and prepare for using Rollup
This commit is contained in:
parent
f6bba786ed
commit
c571a4fbe7
22 changed files with 5522 additions and 582 deletions
11
vendors/openpgp-2.6.2/src/packet/signature.js
vendored
11
vendors/openpgp-2.6.2/src/packet/signature.js
vendored
|
|
@ -100,13 +100,6 @@ Signature.prototype.read = function (bytes) {
|
|||
// switch on version (3 and 4)
|
||||
switch (this.version) {
|
||||
case 3:
|
||||
// One-octet length of following hashed material. MUST be 5.
|
||||
if (bytes[i++] !== 5) {
|
||||
util.print_debug("packet/signature.js\n" +
|
||||
'invalid One-octet length of following hashed material.' +
|
||||
'MUST be 5. @:' + (i - 1));
|
||||
}
|
||||
|
||||
var sigpos = i;
|
||||
// One-octet signature type.
|
||||
this.signatureType = bytes[i++];
|
||||
|
|
@ -463,8 +456,6 @@ Signature.prototype.read_sub_packet = function (bytes) {
|
|||
|
||||
this.notation = this.notation || {};
|
||||
this.notation[name] = value;
|
||||
} else {
|
||||
util.print_debug("Unsupported notation flag "+bytes[mypos]);
|
||||
}
|
||||
break;
|
||||
case 21:
|
||||
|
|
@ -523,8 +514,6 @@ Signature.prototype.read_sub_packet = function (bytes) {
|
|||
this.embeddedSignature = new Signature();
|
||||
this.embeddedSignature.read(bytes.subarray(mypos, bytes.length));
|
||||
break;
|
||||
default:
|
||||
util.print_debug("Unknown signature subpacket type " + type + " @:" + mypos);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue