mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-13 11:55:01 +00:00
Fix verifying one-pass signatures in the compat build (#968)
This was broken in 735d6d0.
See babel/babel#10431.
This commit is contained in:
@@ -133,7 +133,7 @@ OnePassSignature.prototype.hash = Signature.prototype.hash;
|
||||
OnePassSignature.prototype.toHash = Signature.prototype.toHash;
|
||||
OnePassSignature.prototype.toSign = Signature.prototype.toSign;
|
||||
OnePassSignature.prototype.calculateTrailer = function(...args) {
|
||||
return stream.fromAsync(async () => (await this.correspondingSig).calculateTrailer(...args));
|
||||
return stream.fromAsync(async () => Signature.prototype.calculateTrailer.apply(await this.correspondingSig, args));
|
||||
};
|
||||
|
||||
OnePassSignature.prototype.verify = async function() {
|
||||
|
||||
Reference in New Issue
Block a user