/* Registers a new hash function into the SILC. This function is used at
the initialization of the SILC. */
-bool silc_hash_register(SilcHashObject *hash)
+bool silc_hash_register(const SilcHashObject *hash)
{
#ifndef SILC_EPOC
SilcHashObject *new;
int i;
for (i = 0; silc_default_hash[i].name; i++)
- silc_hash_register((SilcHashObject *)&(silc_default_hash[i]));
+ silc_hash_register(&(silc_default_hash[i]));
#endif /* SILC_EPOC */
return TRUE;
(*new_hash)->hash = entry;
(*new_hash)->context = silc_calloc(1, entry->context_len());
(*new_hash)->make_hash = silc_hash_make;
+ return TRUE;
}
return FALSE;