aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-01-11 08:08:54 +0000
committerWerner Koch <[email protected]>2024-01-11 08:08:54 +0000
commit8dfbad0c416ebeaf838d06d50708b8b21f7a8e4a (patch)
treebec85dced019a6492474c18d20dc68095162a767 /g10/keygen.c
parentgpg: Allow to create revocations even with non-compliant algos. (diff)
downloadgnupg-8dfbad0c416ebeaf838d06d50708b8b21f7a8e4a.tar.gz
gnupg-8dfbad0c416ebeaf838d06d50708b8b21f7a8e4a.zip
gpg: Fix regression in the Revoker keyword of the parmeter file.
* g10/keygen.c (parse_revocation_key): Actually allow for v4 fingerprints. -- Note that the use of the parameter file is deprecated. GnuPG-bug-id: 6923
Diffstat (limited to 'g10/keygen.c')
-rw-r--r--g10/keygen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 2f8528278..3efdf94a3 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -4079,7 +4079,7 @@ parse_revocation_key (const char *fname,
pn++;
- for(i=0;i<MAX_FINGERPRINT_LEN && *pn;i++,pn+=2)
+ for(i=0;i<MAX_FINGERPRINT_LEN && *pn && !spacep (pn);i++,pn+=2)
{
int c=hextobyte(pn);
if(c==-1)