1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Bug fix in "showpref"

Allow setting a no-compression preference
This commit is contained in:
David Shaw 2001-12-07 00:57:50 +00:00
parent 88fbd0dfcf
commit ebd148e553
5 changed files with 50 additions and 4 deletions

View file

@ -1175,6 +1175,35 @@ show_prefs (PKT_user_id *uid, int verbose)
tty_printf ("[%d]", prefs[i].value);
}
}
tty_printf ("\n Compression: ");
for(i=any=0; prefs[i].type; i++ ) {
if( prefs[i].type == PREFTYPE_ZIP ) {
const char *s=NULL;
switch(prefs[i].value)
{
case 0:
s="Uncompressed";
break;
case 1:
s="ZIP";
break;
case 2:
s="ZLIB";
break;
}
if (any)
tty_printf (", ");
any = 1;
/* We don't want to display strings for experimental algos */
if (s && prefs[i].value < 100 )
tty_printf ("%s", s );
else
tty_printf ("[%d]", prefs[i].value);
}
}
tty_printf("\n");
}
else {