Page MenuHome GnuPG

gpg: Support specifiying user ID to revoke as UID hash for --quick-revoke-uid
ClosedPublic

Authored by ikloecker on Apr 21 2022, 4:49 PM.

Details

Summary
Test Plan

Run gpg's --quick-revoke-uid command with verbatim user IDs and with UID hashes.

Diff Detail

Repository
rG GnuPG
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

The rest of the code looks fine.

g10/keyedit.c
2465

There is an easier way to do this. See for example agent/command.c:parse_keygrip. The extended error messages are not required but using hex2bin makes sense to me.

This revision is now accepted and ready to land.Apr 22 2022, 6:45 PM
ikloecker marked an inline comment as done.

The changes have been applied with Werner's suggested improvement with revision rG35b17550706c: gpg: Look up user ID to revoke by UID hash