]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
crypto cleanups at exit.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 30 Aug 2007 13:38:52 +0000 (13:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 30 Aug 2007 13:38:52 +0000 (13:38 +0000)
git-svn-id: file:///svn/unbound/trunk@567 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/daemon.c
daemon/worker.c
doc/Changelog
validator/validator.c

index 0db21b917248a5b30c67e66e030ff2594b2cf6fb..6fd1dbc1a6fc603611f3c6b918223c5578a97581 100644 (file)
@@ -460,6 +460,12 @@ daemon_delete(struct daemon* daemon)
        free(daemon->pidfile);
        free(daemon->env);
        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();
        checklock_stop();
 }
index 4b768dded5f4a3aa9a626deac2d0842cdbc352b0..b961a1e5725af352ca78b89e136f5b3c454b0d75 100644 (file)
@@ -114,7 +114,6 @@ void
 worker_mem_report(struct worker* worker, struct serviced_query* cur_serv)
 {
        /* 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 me, iter, val;
        int i;
index a4dee8686183271341abfe18f4dcd5862467d5cf..8afb1a021735b92f2fd0db4ac1cb8a3bfed59fee 100644 (file)
@@ -7,6 +7,7 @@
        - memory accounting fixup for outside network tcp callbacks.
        - memory accounting for iterator fixed storage.
        - key cache size and slabs config options.
+       - lib crypto cleanups at exit. 
 
 29 August 2007: Wouter
        - test tool to sign rrsets for testing validator with.
index 15c7ef44fcbee35043af4105f4f2d92ef7078cca..996e134d1c11e8e932dc155b2646f90cb7abff6b 100644 (file)
@@ -1777,7 +1777,8 @@ val_clear(struct module_qstate* qstate, int id)
 /**
  * Debug helper routine that assists worker in determining memory in 
  * use.
- * @param me: mod_env value
+ * @param env: module environment 
+ * @param id: module id.
  * @return memory in use in bytes.
  */
 static size_t