TLS connect error: "an EOF was observed that violates the protocol"

<[email protected]> Tue, 27 Aug 2024 11:55:04 +0200
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
Hi,

Here are 2 separate issues:

1) socks5 proxy on 127.0.0.1:8080 not working.

This is a proxy over ssh, for example:
ssh -N -D 8080 [email protected]

in dillorc: 
http_proxy="http://localhost:8080/"

console output when trying to connect to a site:
Connecting to 127.0.0.1:8080
CONNECT through proxy failed. Full reply not received:
(nothing)
** WARNING **: CCC: call on already finished chain. Flags=CCC_Ended

This setup works fine under Firefox. 

I tried doing a tcpdump while attempting the connection, and there is no
activity. 

So, while trying to research this, I ran into another issue:

2) Any time I go to a page on this site, Dillo crashes with the
following: 

Nav_open_url: new
url='https://dillo-dev.auriga.wearlab.narkive.com/WT0JYUZq/dillo-won-t-resolve-urls-under-a-proxy-environment' Dns_server [0]: dillo-dev.auriga.wearlab.narkive.com is 149.248.211.108
Connecting to 149.248.211.108:443
TLS connect error: "an EOF was observed that violates the protocol"
Tls_close_by_key: Avoiding SSL shutdown
for: https://dillo-dev.auriga.wearlab.narkive.com/WT0JYUZq/dillo-won-t-resolve-urls-under-a-proxy-environment fd 6 is done and failed
dillo(13689) in malloc(): write to free mem 0x60383b59140[24..31]@32
Abort trap 

gdb output:
Program received signal SIGABRT, Aborted.
thrkill () at /tmp/-:2
2       /tmp/-: No such file or directory.
        in /tmp/-

This is on OpenBSD-current amd64 with LibreSSL 3.9.0, running an
unmodified fresh checkout of Dillo master. Also tested on OpenBSD 7.5
with the same result.

I tested the site with:
https://www.ssllabs.com/ssltest/analyze.html?d=dillo-dev.auriga.wearlab.narkive.com/

There seem to be some handshake failures during the simulation. 

This probably is not be the fault of Dillo, but maybe there is a more
graceful to handle this, rather than crashing. 

Even a test with curl has issues:

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to
dillo-dev.auriga.wearlab.narkive.com:443 

Is this site just broken/misconfigured?

Regards,
Alex
_______________________________________________
Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected]
To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]