Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the optional 0x prefix from the keyID
It is possible to invoke pinentry with different keyID formats via the --keyid-format flag, for instance. This previously broke the length validation for the keyID which should be either 8/short or 16/long bytes without the 0x prefix. Previous issue could be reproduced via: echo 1234 | /usr/local/bin/gpg --default-key $TESTKEY --keyid-format 0xshort -as - Extends the implementation from #16.
- Loading branch information