silc_hash_table_add_ext

SYNOPSIS

    SilcBool silc_hash_table_add_ext(SilcHashTable ht, void *key,
                                     void *context,
                                     SilcHashFunction hash,
                                     void *hash_user_context);

DESCRIPTION

Adds new entry to the hash table. The `key' is hashed using the hash function and the both `key' and `context' will be saved to the hash table. This function quarantees that the entry is always added to the hash table reliably (it is collision resistant).

The `hash' and `hash_user_context' are application specified hash function. If not provided the hash table's default is used.