Fix openpgp.revokeKey().publicKey when using the Worker
This commit is contained in:
parent
1e37b27673
commit
9f8a139624
|
@ -51,6 +51,9 @@ export function clonePackets(options) {
|
||||||
if (options.privateKeys) {
|
if (options.privateKeys) {
|
||||||
options.privateKeys = options.privateKeys.map(key => key.toPacketlist());
|
options.privateKeys = options.privateKeys.map(key => key.toPacketlist());
|
||||||
}
|
}
|
||||||
|
if (options.publicKey) {
|
||||||
|
options.publicKey = options.publicKey.toPacketlist();
|
||||||
|
}
|
||||||
if (options.privateKey) {
|
if (options.privateKey) {
|
||||||
options.privateKey = options.privateKey.toPacketlist();
|
options.privateKey = options.privateKey.toPacketlist();
|
||||||
}
|
}
|
||||||
|
@ -116,6 +119,9 @@ export function parseClonedPackets(options) {
|
||||||
if (options.privateKeys) {
|
if (options.privateKeys) {
|
||||||
options.privateKeys = options.privateKeys.map(packetlistCloneToKey);
|
options.privateKeys = options.privateKeys.map(packetlistCloneToKey);
|
||||||
}
|
}
|
||||||
|
if (options.publicKey) {
|
||||||
|
options.publicKey = packetlistCloneToKey(options.publicKey);
|
||||||
|
}
|
||||||
if (options.privateKey) {
|
if (options.privateKey) {
|
||||||
options.privateKey = packetlistCloneToKey(options.privateKey);
|
options.privateKey = packetlistCloneToKey(options.privateKey);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user