fips: Introduce GCRYCTL_FIPS_REJECT_NON_FIPS.
* src/gcrypt.h.in (GCRYCTL_FIPS_REJECT_NON_FIPS): New. (GCRY_FIPS_FLAG_REJECT_*): New. * src/fips.c (struct gcry_thread_context): Add flags_reject_non_fips. (the_tc): Add initial value. (_gcry_thread_context_set_reject): New. (_gcry_thread_context_check_rejection): New. * src/gcrypt-int.h (fips_check_rejection): New. * src/global.c (_gcry_vcontrol): Handle GCRYCTL_FIPS_REJECT_NON_FIPS. * tests/t-fips-service-ind.c (main): Use GCRYCTL_FIPS_REJECT_NON_FIPS.
- GnuPG-bug-id: T7338
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>