memory reorganization in sec-mod.

It no longer relies on main pool, it uses it's own pool.
In addition the DEBUG_LEAKS definition was added to allow debugging
leaks.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-15 16:37:57 +02:00
parent 48c42fe254
commit d99c527758
8 changed files with 58 additions and 35 deletions

View File

@@ -93,7 +93,7 @@ static int generate_cookie(sec_mod_st * sec, client_entry_st * entry)
sc.expiration = time(0) + sec->config->cookie_validity;
ret =
encrypt_cookie(&sec->cookie_key, &sc, entry->cookie,
encrypt_cookie(&sec->dcookie_key, &sc, entry->cookie,
sizeof(entry->cookie));
if (ret < 0)
return -1;