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

Much stricter checking of the keyserver URI

IDEA warning for pk messages encrypted with IDEA (symmetric is already done)
Print IDEA warning for each occurance except for secret key protection and
unknown cipher from an encrypted message.
This commit is contained in:
David Shaw 2001-12-18 23:10:46 +00:00
parent b8f127c598
commit e8936126af
9 changed files with 48 additions and 15 deletions

View file

@ -1243,7 +1243,7 @@ main( int argc, char **argv )
{
log_info(_("encrypting a message in --pgp2 mode requires "
"the IDEA cipher\n"));
idea_cipher_warn();
idea_cipher_warn(1);
unusable=1;
}
else
@ -1278,7 +1278,7 @@ main( int argc, char **argv )
if( def_cipher_string ) {
opt.def_cipher_algo = string_to_cipher_algo(def_cipher_string);
if(opt.def_cipher_algo==0 && strcasecmp(def_cipher_string,"idea")==0)
idea_cipher_warn();
idea_cipher_warn(1);
m_free(def_cipher_string); def_cipher_string = NULL;
if( check_cipher_algo(opt.def_cipher_algo) )
log_error(_("selected cipher algorithm is invalid\n"));
@ -2142,15 +2142,15 @@ check_policy_url( const char *s )
/* Special warning for the IDEA cipher */
void
idea_cipher_warn(void)
idea_cipher_warn(int show)
{
static int warned=0;
if(!warned)
if(!warned || show)
{
log_info("the IDEA cipher plugin is not present\n");
log_info("please see http://www.gnupg.org/why-not-idea.html "
"for more information\n");
log_info(_("the IDEA cipher plugin is not present\n"));
log_info(_("please see http://www.gnupg.org/why-not-idea.html "
"for more information\n"));
warned=1;
}
}