gpg: Make --require-compliance work for -se
* g10/encrypt.c (encrypt_crypt, encrypt_filter): Factor common code out to ... (create_dek_with_warnings): new (check_encryption_compliance): and new. * g10/encrypt.c (encrypt_filter): Add the compliance check.
Ported-from: f88cb12f8e3c1234a094d09e2505d3a3eec4cbfe
- GnuPG-bug-id: T6174