mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Remove MDC options
* g10/gpg.c: Tuen options --force-mdc, --no-force-mdc, --disable-mdc and --no-disable-mdc into NOPs. * g10/encrypt.c (use_mdc): Simplify. MDC is now almost always used. (use_aead): Ignore MDC options. Print warning for missing MDC feature flags. * g10/pkclist.c (warn_missing_mdc_from_pklist): Rename to ... (warn_missing_aead_from_pklist): this and adjust. -- The MDC is now always used except with --rfc2440 which will lead to a a big fat warning. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
af4a5dbe57
commit
253e8bdd90
7 changed files with 46 additions and 88 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "packet.h"
|
||||
#include "options.h"
|
||||
#include "main.h"
|
||||
#include "../common/i18n.h"
|
||||
#include "../common/status.h"
|
||||
|
||||
|
||||
|
@ -66,8 +67,9 @@ write_header (cipher_filter_context_t *cfx, iobuf_t a)
|
|||
}
|
||||
else
|
||||
{
|
||||
log_info ("WARNING: "
|
||||
"encrypting without integrity protection is dangerous\n");
|
||||
log_info (_("WARNING: "
|
||||
"encrypting without integrity protection is dangerous\n"));
|
||||
log_info (_("Hint: Do not use option %s\n"), "--rfc2440");
|
||||
}
|
||||
|
||||
write_status_printf (STATUS_BEGIN_ENCRYPTION, "%d %d",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue