aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.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/keyedit.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/keyedit.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 9a7d1f2a7..e34ee3aaa 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -1694,9 +1694,22 @@ show_prefs (PKT_user_id *uid, int verbose)
}
tty_printf ("%s",compress_algo_to_string(0));
}
- tty_printf ("\n Features: ");
- if(uid->mdc_feature)
- tty_printf ("MDC");
+ if(uid->mdc_feature || !uid->ks_modify)
+ {
+ tty_printf ("\n Features: ");
+ any=0;
+ if(uid->mdc_feature)
+ {
+ tty_printf ("MDC");
+ any=1;
+ }
+ if(!uid->ks_modify)
+ {
+ if(any)
+ tty_printf (", ");
+ tty_printf ("Keyserver no-modify");
+ }
+ }
tty_printf("\n");
}
else {
@@ -1709,6 +1722,8 @@ show_prefs (PKT_user_id *uid, int verbose)
}
if (uid->mdc_feature)
tty_printf (" [mdc]");
+ if (!uid->ks_modify)
+ tty_printf (" [no-ks-modify]");
tty_printf("\n");
}
}