Re: Dillo crash on HTTPS connection (to MS web site)
eocene <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Feb 24, 2016 at 11:41:48PM +0200, John Found wrote: > ** ERROR **: our TLS mystery error is: error:140C5042:SSL routines:ssl_undefined_function:called a function you should not call If this is indeed the same problem that apache, nginx, et al., are seeing, then the attached should suffice to fix it. _______________________________________________ Dillo-dev mailing list [email protected] http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev
tls_init_shutdown.diff
(text/x-diff, 557 B)
diff -r 50d1c1aff6ae src/IO/tls.c
--- a/src/IO/tls.c Mon Jan 25 19:48:54 2016 +0100
+++ b/src/IO/tls.c Wed Mar 02 11:00:50 2016 +0000
@@ -1041,7 +1041,12 @@
a_IOwatch_remove_fd(c->fd, -1);
dClose(c->fd);
}
- SSL_shutdown(c->ssl);
+ if (!SSL_in_init(c->ssl)) {
+ /* openssl 1.0.2f does not like shutdown being called during handshake,
+ * resulting in ssl_undefined_function in the error queue.
+ */
+ SSL_shutdown(c->ssl);
+ }
SSL_free(c->ssl);
a_Url_free(c->url);