diff options
author | Adrian-Ken Rueegsegger <ken@codelabs.ch> | 2012-08-22 11:17:14 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-03-19 15:23:46 +0100 |
commit | 528fc21ffe01f4b7a0fcc277aeb5af3f993dbed3 (patch) | |
tree | 6cc13614e356566bc95e00d04140eb88b7ba54e4 /src/charon-tkm/tests/diffie_hellman_tests.c | |
parent | ba0d7d9a76ec8dd8f53e92c8dd4b6bed794e6bf9 (diff) | |
download | strongswan-528fc21ffe01f4b7a0fcc277aeb5af3f993dbed3.tar.bz2 strongswan-528fc21ffe01f4b7a0fcc277aeb5af3f993dbed3.tar.xz |
Add context id getter to TKM DH implementation
Diffstat (limited to 'src/charon-tkm/tests/diffie_hellman_tests.c')
-rw-r--r-- | src/charon-tkm/tests/diffie_hellman_tests.c | 1 |
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); } |