diff options
Diffstat (limited to 'ecp/src/htable/htable.c')
-rw-r--r-- | ecp/src/htable/htable.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ecp/src/htable/htable.c b/ecp/src/htable/htable.c index a46291b..1fa79a3 100644 --- a/ecp/src/htable/htable.c +++ b/ecp/src/htable/htable.c @@ -5,11 +5,14 @@ #include "hashtable.h" void *ecp_ht_create(ECPContext *ctx) { - return create_hashtable(1000, (unsigned int (*)(void *))ecp_cr_dh_pub_hash_fn, (int (*)(void *, void *))ecp_cr_dh_pub_hash_eq, NULL, NULL, NULL); + printf("NEFORE CREATE\n"); + void *r = hashtable_create(1000, (unsigned int (*)(void *))ecp_cr_dh_pub_hash_fn, (int (*)(void *, void *))ecp_cr_dh_pub_hash_eq); + printf("AFTER CREATE\n"); + return r; } void ecp_ht_destroy(void *h) { - hashtable_destroy(h); + hashtable_destroy(h, 0); } int ecp_ht_insert(void *h, unsigned char *k, ECPConnection *v) { |