mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
14
sm/gpgsm.h
14
sm/gpgsm.h
|
@ -150,6 +150,8 @@ struct
|
|||
* mode. */
|
||||
int require_compliance;
|
||||
|
||||
/* Compatibility flags (COMPAT_FLAG_xxxx). */
|
||||
unsigned int compat_flags;
|
||||
} opt;
|
||||
|
||||
/* Debug values and macros. */
|
||||
|
@ -169,6 +171,18 @@ struct
|
|||
#define DBG_HASHING (opt.debug & DBG_HASHING_VALUE)
|
||||
#define DBG_IPC (opt.debug & DBG_IPC_VALUE)
|
||||
|
||||
|
||||
/* Compatibility flags */
|
||||
/* Telesec RSA cards produced for NRW in 2022 came with only the
|
||||
* keyAgreement bit set. This flag allows there use for encryption
|
||||
* anyway. Example cert:
|
||||
* Issuer: /CN=DOI CA 10a/OU=DOI/O=PKI-1-Verwaltung/C=DE
|
||||
* key usage: digitalSignature nonRepudiation keyAgreement
|
||||
* policies: 1.3.6.1.4.1.7924.1.1:N:
|
||||
*/
|
||||
#define COMPAT_ALLOW_KA_TO_ENCR 1
|
||||
|
||||
|
||||
/* Forward declaration for an object defined in server.c */
|
||||
struct server_local_s;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue