mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* main.h: Create S2K_DIGEST_ALGO macro so we do not need to always set
opt.s2k_digest_algo. This helps fix a problem with PGP 2.x encrypted symmetric messages. Change all callers (encode.c, g10.c, keyedit.c, keygen.c, passphrase.c, sign.c). * armor.c, cardglue.c, getkey.c, import.c, keygen.c: Be consistent in some more quoted strings. Always use 'user ID', not 'user id', "quotes" for user IDs, etc.
This commit is contained in:
parent
680be9be10
commit
4d26ab92cc
12 changed files with 45 additions and 34 deletions
|
@ -1465,9 +1465,6 @@ parse_list_options(char *str)
|
|||
{NULL,0,NULL}
|
||||
};
|
||||
|
||||
/* this is wrong since the show-sig-subpackets could have been set
|
||||
from a previous incarnation of list-options */
|
||||
|
||||
if(parse_options(str,&opt.list_options,lopts,1))
|
||||
{
|
||||
if(opt.list_options&LIST_SHOW_SIG_SUBPACKETS)
|
||||
|
@ -1587,7 +1584,6 @@ main( int argc, char **argv )
|
|||
opt.cert_digest_algo = 0;
|
||||
opt.compress_algo = -1; /* defaults to DEFAULT_COMPRESS_ALGO */
|
||||
opt.s2k_mode = 3; /* iterated+salted */
|
||||
opt.s2k_digest_algo = DIGEST_ALGO_SHA1;
|
||||
#ifdef USE_CAST5
|
||||
opt.s2k_cipher_algo = CIPHER_ALGO_CAST5;
|
||||
#else
|
||||
|
@ -2613,6 +2609,8 @@ main( int argc, char **argv )
|
|||
opt.ask_cert_expire = 0;
|
||||
m_free(def_digest_string);
|
||||
def_digest_string = m_strdup("md5");
|
||||
m_free(s2k_digest_string);
|
||||
s2k_digest_string = m_strdup("md5");
|
||||
opt.compress_algo = COMPRESS_ALGO_ZIP;
|
||||
}
|
||||
}
|
||||
|
@ -3784,8 +3782,7 @@ add_notation_data( const char *string, int which )
|
|||
|
||||
if(!saw_at && !opt.expert)
|
||||
{
|
||||
log_error(
|
||||
_("a user notation name must contain the '@' character\n"));
|
||||
log_error(_("a user notation name must contain the '@' character\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue