aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-02-22 23:58:39 +0000
committerDavid Shaw <[email protected]>2003-02-22 23:58:39 +0000
commit30d0fc519dd4f65f4a5ad19dfb2fe052a2c80181 (patch)
treefe66cb2f63c9a33aeb27e136250e374df1681acd /g10/getkey.c
parent* ttyio.c (tty_print_utf8_string, tty_print_utf8_string2): Use 0 to (diff)
downloadgnupg-30d0fc519dd4f65f4a5ad19dfb2fe052a2c80181.tar.gz
gnupg-30d0fc519dd4f65f4a5ad19dfb2fe052a2c80181.zip
* sign.c (sign_file): Do not push textmode filter onto an unopened IOBUF
(segfault). Noted by Marcus Brinkmann. Push and reinitialize textmode filter for each file in a multiple file list. * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Set and show the keyserver no-modify flag. * keygen.c (add_keyserver_modify): New. (keygen_upd_std_prefs): Call it here. (keygen_set_std_prefs): Accept "ks-modify" and "no-ks-modify" as prefs to set and unset keyserver modify flag.
Diffstat (limited to '')
-rw-r--r--g10/getkey.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 9040d386c..a4403e523 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1296,6 +1296,11 @@ fixup_uidnode ( KBNODE uidnode, KBNODE signode, u32 keycreated )
p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_FEATURES, &n);
if (p && n && (p[0] & 0x01))
uid->mdc_feature = 1;
+ /* and the keyserver modify flag */
+ uid->ks_modify = 1;
+ p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_KS_FLAGS, &n);
+ if (p && n && (p[0] & 0x80))
+ uid->ks_modify = 0;
}