aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon-tkm/tests/diffie_hellman_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon-tkm/tests/diffie_hellman_tests.c')
-rw-r--r--src/charon-tkm/tests/diffie_hellman_tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/charon-tkm/tests/diffie_hellman_tests.c b/src/charon-tkm/tests/diffie_hellman_tests.c
index c2e905e76..ffe99614d 100644
--- a/src/charon-tkm/tests/diffie_hellman_tests.c
+++ b/src/charon-tkm/tests/diffie_hellman_tests.c
@@ -27,6 +27,7 @@ START_TEST(test_dh_creation)
dh = tkm_diffie_hellman_create(MODP_4096_BIT);
fail_if(!dh, "MODP_4096 not created");
+ fail_if(!dh->get_id(dh), "Invalid context id (0)");
dh->dh.destroy(&dh->dh);
}