mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
crypto cleanups at exit.
git-svn-id: file:///svn/unbound/trunk@567 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a22a3b1669
commit
45297772c9
4 changed files with 9 additions and 2 deletions
|
|
@ -460,6 +460,12 @@ daemon_delete(struct daemon* daemon)
|
||||||
free(daemon->pidfile);
|
free(daemon->pidfile);
|
||||||
free(daemon->env);
|
free(daemon->env);
|
||||||
free(daemon);
|
free(daemon);
|
||||||
|
/* libcrypto cleanup */
|
||||||
|
/* CONF_modules_unload(1); */
|
||||||
|
EVP_cleanup();
|
||||||
|
/* ENGINE_cleanup(); */
|
||||||
|
CRYPTO_cleanup_all_ex_data(); /* safe, no more threads right now */
|
||||||
|
ERR_remove_state(0);
|
||||||
ERR_free_strings();
|
ERR_free_strings();
|
||||||
checklock_stop();
|
checklock_stop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ void
|
||||||
worker_mem_report(struct worker* worker, struct serviced_query* cur_serv)
|
worker_mem_report(struct worker* worker, struct serviced_query* cur_serv)
|
||||||
{
|
{
|
||||||
/* debug func in validator module */
|
/* debug func in validator module */
|
||||||
size_t val_kcache_get_mem(void*);
|
|
||||||
size_t total, front, back, mesh, msg, rrset, infra, ac, superac;
|
size_t total, front, back, mesh, msg, rrset, infra, ac, superac;
|
||||||
size_t me, iter, val;
|
size_t me, iter, val;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
- memory accounting fixup for outside network tcp callbacks.
|
- memory accounting fixup for outside network tcp callbacks.
|
||||||
- memory accounting for iterator fixed storage.
|
- memory accounting for iterator fixed storage.
|
||||||
- key cache size and slabs config options.
|
- key cache size and slabs config options.
|
||||||
|
- lib crypto cleanups at exit.
|
||||||
|
|
||||||
29 August 2007: Wouter
|
29 August 2007: Wouter
|
||||||
- test tool to sign rrsets for testing validator with.
|
- test tool to sign rrsets for testing validator with.
|
||||||
|
|
|
||||||
|
|
@ -1777,7 +1777,8 @@ val_clear(struct module_qstate* qstate, int id)
|
||||||
/**
|
/**
|
||||||
* Debug helper routine that assists worker in determining memory in
|
* Debug helper routine that assists worker in determining memory in
|
||||||
* use.
|
* use.
|
||||||
* @param me: mod_env value
|
* @param env: module environment
|
||||||
|
* @param id: module id.
|
||||||
* @return memory in use in bytes.
|
* @return memory in use in bytes.
|
||||||
*/
|
*/
|
||||||
static size_t
|
static size_t
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue