Merge pull request #483 from ProtonMail/one-pass-sig-last
Properly set one-pass signature packet flag
This commit is contained in:
commit
68cdc0069d
|
@ -321,6 +321,9 @@ Message.prototype.sign = function(privateKeys) {
|
|||
}
|
||||
onePassSig.publicKeyAlgorithm = signingKeyPacket.algorithm;
|
||||
onePassSig.signingKeyId = signingKeyPacket.getKeyId();
|
||||
if (i === privateKeys.length - 1) {
|
||||
onePassSig.flags = 1;
|
||||
}
|
||||
packetlist.push(onePassSig);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user