pgp2 option seems not to set disable_mdc

David Shaw dshaw at jabberwocky.com
Thu Jun 24 17:55:52 CEST 2010


On Jun 24, 2010, at 8:41 AM, Nico wrote:

> Hello!
> 
> The GnuPG 2.0.15 manual documents that --pgp2 implies --disable-mdc.
> When I print the value of opt.disable_mdc at the end of the main method
> in g10/gpg.c, I can see that it is still 0. The code does not seem to
> set it for PGP2.
> 
> I assume that either the documentation or the code are buggy. But there
> may be additional options involving mdc (perhaps use_mdc()?) that
> disable MDC for PGP2-compliance mode, and do not use opt.disable_mdc.
> 
> I’d be happy if someone could double-check and enlighten me (or fix the
> bug if it is one).

It's okay - the manual and the code are correct.  --pgp2 causes RFC1991 to be true, and if RFC1991 is true, then MDCs are disabled (the MDC didn't exist in RFC-1991).  It doesn't need to literally set opt.disable_mdc.

David




More information about the Gnupg-devel mailing list