diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-21 11:14:15 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-21 11:14:15 +0100 |
commit | c5a863b3d3caa59cd623a933a51364bc16007ecd (patch) | |
tree | 6e2605b9af1314683e18c5340764255af691b08c /src/tests.c | |
parent | 356ddd824b0f95d0713daa6d12dbbcb3baf65439 (diff) | |
download | gnutls-c5a863b3d3caa59cd623a933a51364bc16007ecd.tar.gz |
tools: enable compilation with all options disabled
Diffstat (limited to 'src/tests.c')
-rw-r--r-- | src/tests.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tests.c b/src/tests.c index 72fa2f7571..e2283fca93 100644 --- a/src/tests.c +++ b/src/tests.c @@ -185,6 +185,7 @@ static gnutls_ecc_curve_t curve = GNUTLS_ECC_CURVE_INVALID; test_code_t test_dhe(gnutls_session_t session) { +#ifdef ENABLE_DHE int ret; sprintf(prio_str, INIT_STR @@ -199,6 +200,8 @@ test_code_t test_dhe(gnutls_session_t session) gnutls_dh_get_pubkey(session, &pubkey); return ret; +#endif + return TEST_IGNORE; } test_code_t test_ecdhe(gnutls_session_t session) @@ -277,7 +280,9 @@ test_code_t test_ocsp_status(gnutls_session_t session) return TEST_FAILED; } -test_code_t test_etm(gnutls_session_t session) +#endif + +test_code_t test_ext_master_secret(gnutls_session_t session) { int ret; @@ -296,13 +301,13 @@ test_code_t test_etm(gnutls_session_t session) if (ret < 0) return TEST_FAILED; - if (gnutls_session_etm_status(session) != 0) + if (gnutls_session_ext_master_secret_status(session) != 0) return TEST_SUCCEED; return TEST_FAILED; } -test_code_t test_ext_master_secret(gnutls_session_t session) +test_code_t test_etm(gnutls_session_t session) { int ret; @@ -321,12 +326,11 @@ test_code_t test_ext_master_secret(gnutls_session_t session) if (ret < 0) return TEST_FAILED; - if (gnutls_session_ext_master_secret_status(session) != 0) + if (gnutls_session_etm_status(session) != 0) return TEST_SUCCEED; return TEST_FAILED; } -#endif test_code_t test_safe_renegotiation_scsv(gnutls_session_t session) { |