]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix compilation without SSL.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jun 2012 09:11:41 +0000 (09:11 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 22 Jun 2012 09:11:41 +0000 (09:11 +0000)
git-svn-id: file:///svn/unbound/trunk@2698 be551aaa-1e26-0410-a405-d3ace91eadb9

services/outside_network.c
util/netevent.c

index 24d65db399322cd066a3f6b73bb21564bbb19b03..ba40d474dd222376ceb1b72e6b5fcc744090c14a 100644 (file)
@@ -297,9 +297,11 @@ decomission_pending_tcp(struct outside_network* outnet,
        struct pending_tcp* pend)
 {
        if(pend->c->ssl) {
+#ifdef HAVE_SSL
                SSL_shutdown(pend->c->ssl);
                SSL_free(pend->c->ssl);
                pend->c->ssl = NULL;
+#endif
        }
        comm_point_close(pend->c);
        pend->next_free = outnet->tcp_free;
index 2557a8b7ae248856524a6cd79ad55451faeb39bf..1998d646ae664cb3405f6ddf1d37d77bba840b51 100644 (file)
@@ -850,9 +850,11 @@ reclaim_tcp_handler(struct comm_point* c)
 {
        log_assert(c->type == comm_tcp);
        if(c->ssl) {
+#ifdef HAVE_SSL
                SSL_shutdown(c->ssl);
                SSL_free(c->ssl);
                c->ssl = NULL;
+#endif
        }
        comm_point_close(c);
        if(c->tcp_parent) {
@@ -1854,8 +1856,10 @@ comm_point_delete(struct comm_point* c)
        if(!c) 
                return;
        if(c->type == comm_tcp && c->ssl) {
+#ifdef HAVE_SSL
                SSL_shutdown(c->ssl);
                SSL_free(c->ssl);
+#endif
        }
        comm_point_close(c);
        if(c->tcp_handlers) {