Commit f0b497b7 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Make revoking a user ID a bit more robust

Revoking a user ID specified by the actual user ID may fail because of
charset issues. Specifying the user ID to revoke by its hash makes this
more robust. This is supported since GnuPG 2.3.7.

GnuPG-bug-id: 4087
parent ee47e24e
Pipeline #168611 passed with stage
in 2 minutes and 21 seconds
......@@ -80,7 +80,7 @@ void Commands::RevokeUserIDCommand::Private::startJob()
finished();
return;
}
const QString uidToRevoke = QString::fromUtf8(userId.id());
const QString uidToRevoke = QString::fromUtf8(engineIsVersion(2, 3, 7) ? userId.uidhash() : userId.id());
job->startRevUid(userId.parent(), uidToRevoke);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment