aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-01-16 19:20:10 +0000
committerDavid Shaw <[email protected]>2003-01-16 19:20:10 +0000
commit8220f3fd4d0e09a3d381886c610b56240ca848b8 (patch)
treef3ff3d8e28be2006a9e3d25f365af618adf06ae2 /g10/g10.c
parent* trustdb.c (init_trustdb, get_validity): Don't use a changed trust model (diff)
downloadgnupg-8220f3fd4d0e09a3d381886c610b56240ca848b8.tar.gz
gnupg-8220f3fd4d0e09a3d381886c610b56240ca848b8.zip
* g10.c (add_group): Trim whitespace after a group name so it does not
matter where the user puts the = sign. * options.skel: Comment out the first three lines in case someone manually copies the skel file to their homedir. * sign.c (clearsign_file): Only use pgp2mode with v3 keys and MD5. This matches what we do when decoding such messages and prevents creating a message (v3+RIPEMD/160) that we can't verify. * sig-check.c (signature_check2): Use G10ERR_GENERAL as the error for signature digest conflict. BAD_SIGN implies that a signature was checked and we may try and print out a user ID for a key that doesn't exist.
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 07816a284..dd0c2b7af 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -858,6 +858,8 @@ static void add_group(char *string)
return;
}
+ trim_trailing_ws(name,strlen(name));
+
/* Break apart the values */
while ((value= strsep(&string," \t")))
{