tests: Improve FIPS detection in curves test.
* tests/curves.c (check_matching): When FIPS mode enabled, skip a test with sample_key_2, which uses brainpoolP160r1 curve. (check_get_params): Replace "error_expected" filed to "flags" to hold TEST_ERROR_EXPECTED and/or TEST_NOFIPS. Put TEST_NOFIPS flags for non-FIPS curves. When FIPS mode enabled, don't skip supported curves.
(ChangeLog entry and link to tracker are written by gniibe.)
- GnuPG-bug-id: T5520
- Signed-off-by: Jakub Jelen <jjelen@redhat.com>