gpg,gpgsm: Fix compliance check for DSA and avoid an assert.