isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
426 stars 171 forks source link

Allow passing --ignore-mdc-error option #283

Open praveenram opened 2 years ago

praveenram commented 2 years ago

With gpg2+ mdc errors force the decryption process to return a non-zero status code, with a warning even if the decryption was successful.

Currently the --ignore-mdc-error option is not in the allowed list of options and is removed by the parser.

While it is a security risk to ignore mdc errors while decrypting messages, it is a useful option to have for message signed by older systems.

Note: This option maybe removed from the gpg standard at some point in the future.