Fix openpgp.revokeKey().publicKey when using the Worker

This commit is contained in:
Daniel Huigens 2019-10-15 14:14:13 +02:00
parent 1e37b27673
commit 9f8a139624

View File

@ -51,6 +51,9 @@ export function clonePackets(options) {
if (options.privateKeys) {
options.privateKeys = options.privateKeys.map(key => key.toPacketlist());
}
if (options.publicKey) {
options.publicKey = options.publicKey.toPacketlist();
}
if (options.privateKey) {
options.privateKey = options.privateKey.toPacketlist();
}
@ -116,6 +119,9 @@ export function parseClonedPackets(options) {
if (options.privateKeys) {
options.privateKeys = options.privateKeys.map(packetlistCloneToKey);
}
if (options.publicKey) {
options.publicKey = packetlistCloneToKey(options.publicKey);
}
if (options.privateKey) {
options.privateKey = packetlistCloneToKey(options.privateKey);
}