提交 8afbd52f 编写于 作者: G Giuseppe Scrivano

tests: force FIPS testing mode with new enough GNU TLS versions

Signed-off-by: NGiuseppe Scrivano <gscrivan@redhat.com>
上级 ab220967
...@@ -113,6 +113,8 @@ mymain(void) ...@@ -113,6 +113,8 @@ mymain(void)
{ {
int ret = 0; int ret = 0;
setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1);
testTLSInit(KEYFILE); testTLSInit(KEYFILE);
# define DO_CTX_TEST(_isServer, _caCrt, _crt, _expectFail) \ # define DO_CTX_TEST(_isServer, _caCrt, _crt, _expectFail) \
......
...@@ -240,6 +240,8 @@ mymain(void) ...@@ -240,6 +240,8 @@ mymain(void)
{ {
int ret = 0; int ret = 0;
setenv("GNUTLS_FORCE_FIPS_MODE", "2", 1);
testTLSInit(KEYFILE); testTLSInit(KEYFILE);
# define DO_SESS_TEST(_caCrt, _serverCrt, _clientCrt, _expectServerFail, \ # define DO_SESS_TEST(_caCrt, _serverCrt, _clientCrt, _expectServerFail, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册