/* register ourself with the list of crypt mechanisms -- hikari */ void ircd_register_crypt_native(void) { crypt_mech_t* crypt_mech; if ((crypt_mech = (crypt_mech_t*)MyMalloc(sizeof(crypt_mech_t))) == NULL) { Debug((DEBUG_MALLOC, "Could not allocate space for crypt_native")); return; } crypt_mech->mechname = "native"; crypt_mech->shortname = "crypt_native"; crypt_mech->description = "System native crypt() function mechanism."; crypt_mech->crypt_function = &ircd_crypt_native; crypt_mech->crypt_token = "$CRYPT$"; crypt_mech->crypt_token_size = 7; ircd_crypt_register_mech(crypt_mech); return; }
/** register ourself with the list of crypt mechanisms * Registers the PLAIN mechanism in the list of available crypt mechanisms. * When we're modular this will be the entry function for the module. * * -- hikari */ void ircd_register_crypt_plain(void) { crypt_mech_t* crypt_mech; if ((crypt_mech = (crypt_mech_t*)MyMalloc(sizeof(crypt_mech_t))) == NULL) { Debug((DEBUG_MALLOC, "Could not allocate space for crypt_plain")); return; } crypt_mech->mechname = "plain"; crypt_mech->shortname = "crypt_plain"; crypt_mech->description = "Plain text \"crypt\" mechanism."; crypt_mech->crypt_function = &ircd_crypt_plain; crypt_mech->crypt_token = "$PLAIN$"; crypt_mech->crypt_token_size = 7; ircd_crypt_register_mech(crypt_mech); return; }