mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpgsm: New option --compatibility-flags.
* sm/gpgsm.c (oCompatibilityFlags): New option. (compatibility_flags): new. (main): Parse and print them in verbose mode. * sm/gpgsm.h (opt): Add field compat_glags.: (COMPAT_ALLOW_KA_TO_ENCR): New. * sm/keylist.c (print_capabilities): Take care of the new flag. * sm/certlist.c (cert_usage_p): Ditto. * common/miscellaneous.c (parse_compatibility_flags): New. * common/util.h (struct compatibility_flags_s): New. -- Backported-from-master:f0b373cec9
Backported-from-master:ce63eaa4f8
This commit is contained in:
parent
b356eddf3d
commit
77b6896f7a
7 changed files with 164 additions and 9 deletions
|
@ -358,6 +358,15 @@ struct debug_flags_s
|
|||
int parse_debug_flag (const char *string, unsigned int *debugvar,
|
||||
const struct debug_flags_s *flags);
|
||||
|
||||
struct compatibility_flags_s
|
||||
{
|
||||
unsigned int flag;
|
||||
const char *name;
|
||||
const char *desc;
|
||||
};
|
||||
int parse_compatibility_flags (const char *string, unsigned int *flagvar,
|
||||
const struct compatibility_flags_s *flags);
|
||||
|
||||
|
||||
/*-- Simple replacement functions. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue