mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-14 12:24:54 +00:00
Rename config.unsafe_stream to allow_unauthenticated_stream
This commit is contained in:
@@ -148,7 +148,7 @@ SymEncryptedIntegrityProtected.prototype.decrypt = async function (sessionKeyAlg
|
||||
});
|
||||
let packetbytes = stream.slice(bytes, 0, -2);
|
||||
packetbytes = stream.concat([packetbytes, stream.fromAsync(() => verifyHash)]);
|
||||
if (!util.isStream(encrypted) || !config.unsafe_stream) {
|
||||
if (!util.isStream(encrypted) || !config.allow_unauthenticated_stream) {
|
||||
packetbytes = await stream.readToEnd(packetbytes);
|
||||
}
|
||||
await this.packets.read(packetbytes);
|
||||
|
||||
Reference in New Issue
Block a user