Closed charger closed 10 months ago
@charger we're having the same issue here. Did you find any workaround?
@alnpetil the only workaround I found is saving to temp file and call system "gpg" and reading result from second file.
@alnpetil and @charger you can add ignore-mdc-error
to your ~/.gnupg/gpg.conf
and this library will continue to work - Its not great from a security perspective but sometimes you can't get a third party service to fix this on their end.
Same issue here, can gpgme provide an addtional option param to let us pass in this flag instead?
When I tried to decrypt a message from an external service I got
GPGME::Error::DecryptFailed
. This error can mean "cipher was encrypted for a key that's not available currently" but this is not the case, because other messages with the same recipient are decrypted, so the private key is not the cause. There is a code to reproduce:The private key which can decrypt this message (created especially for this issue) in this gist
Then I saved it to a file:
and tried to decrypt using
gpg
:So
gpg
gives warnings about the absence of MDC (Modification Detection Code). And I can decrypt the message with--ignore-mdc-error
flag, so I'm sure that exactly MDC prevents me from decrypting withGPGME
. Can anyone help me to figure out how to ignore the MDC error usingGPGME
?gpg version 2.2.19 (Ubuntu). but 2.2.27 has the same behavior.