As discussed on gnupg-devel, it seems reasonable to change the
default-preference-list so that newly-created keys advertise all the digests
gnupg actually supports.
the attached patch should make the digests within default-preference-list be
"SHA512 SHA384 SHA256 SHA224 RIPEMD160 SHA1". Note that i extended the size of
the dummy_string buffer -- for one thing, when including digests like "H10 ",
it's 4 chars per digest, not 3. So 3*15+1 doesn't guarantee that we can fit 15
items.
I'm happy to assign copyright on this patch to the FSF if that's considered
important.