]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix nettle compile.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Feb 2018 13:03:54 +0000 (13:03 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Feb 2018 13:03:54 +0000 (13:03 +0000)
git-svn-id: file:///svn/unbound/trunk@4555 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/netevent.c

index dba37445574ddf4f5d3aca03c71b7ce16905f192..d2b8589bd23d883687c9e62bd798c6b303194f2c 100644 (file)
@@ -2,6 +2,7 @@
        - Fixup contrib/fastrpz.patch so that it applies.
        - Fix compile without threads, and remove unused variable.
        - Fix compile with staticexe and python module.
+       - Fix nettle compile.
 
 22 February 2018: Ralph
        - Save wildcard RRset from answer with original owner for use in
index c3f2f7162c81256f17333d01f506725e4552e341..97e31dcbe6f1ae1e129f0f3f423ca1d8c0bdad6f 100644 (file)
@@ -2029,12 +2029,14 @@ comm_point_http_handle_read(int fd, struct comm_point* c)
        log_assert(fd != -1);
 
        /* if we are in ssl handshake, handle SSL handshake */
+#ifdef HAVE_SSL
        if(c->ssl && c->ssl_shake_state != comm_ssl_shake_none) {
                if(!ssl_handshake(c))
                        return 0;
                if(c->ssl_shake_state != comm_ssl_shake_none)
                        return 1;
        }
+#endif /* HAVE_SSL */
 
        if(!c->tcp_is_reading)
                return 1;
@@ -2227,12 +2229,14 @@ comm_point_http_handle_write(int fd, struct comm_point* c)
                c->tcp_check_nb_connect = 0;
        }
        /* if we are in ssl handshake, handle SSL handshake */
+#ifdef HAVE_SSL
        if(c->ssl && c->ssl_shake_state != comm_ssl_shake_none) {
                if(!ssl_handshake(c))
                        return 0;
                if(c->ssl_shake_state != comm_ssl_shake_none)
                        return 1;
        }
+#endif /* HAVE_SSL */
        if(c->tcp_is_reading)
                return 1;
        /* if we are writing, write more */
@@ -2717,7 +2721,9 @@ comm_point_create_http_out(struct comm_base *base, size_t bufsize,
        if(c->ev->ev == NULL)
        {
                log_err("could not baseset tcpout event");
+#ifdef HAVE_SSL
                SSL_free(c->ssl);
+#endif
                sldns_buffer_free(c->buffer);
                free(c->ev);
                free(c);