mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyserver.c (keyserver_spawn): Assert that we have dropped privs.
* pubkey-enc.c (get_session_key): Check that the public key algorithm is indeed usable for en/decryption. This avoid a strange error message from pubkey_decrypt if for some reasons a bad algorithm indentifier is passed. * hkp.c (hkp_export): Do not print possible control characters from a keyserver response. (parse_hkp_index): Made uid an unsigned char* because it is passed to isspace(). (hkp_search): Ditto for the char* vars. * g10.c (main): Print the IDEA warning also for -c and -se. * g10.c (get_temp_dir): Assert that we have dropped privs * encode.c (encode_crypt): Include the first key into the --pgp2 check.
This commit is contained in:
parent
0f47bb3c19
commit
3851f7df8c
6 changed files with 92 additions and 22 deletions
|
@ -263,8 +263,8 @@ encode_crypt( const char *filename, STRLIST remusr )
|
|||
if( (rc=build_pk_list( remusr, &pk_list, PUBKEY_USAGE_ENC)) )
|
||||
return rc;
|
||||
|
||||
if(opt.pgp2)
|
||||
for(work_list=pk_list;work_list->next!=NULL;work_list=work_list->next)
|
||||
if(opt.pgp2) {
|
||||
for(work_list=pk_list; work_list; work_list=work_list->next)
|
||||
if(!(is_RSA(work_list->pk->pubkey_algo) &&
|
||||
nbits_from_pk(work_list->pk)<=2048))
|
||||
{
|
||||
|
@ -273,6 +273,7 @@ encode_crypt( const char *filename, STRLIST remusr )
|
|||
log_info(_("This message will not be usable by PGP 2.x\n"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* prepare iobufs */
|
||||
if( !(inp = iobuf_open(filename)) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue