Re: 79-test_http.t and 80-test_cmp_http.t fail on 3.0.16 if ipv6 is disabled (?)
Zube <Zube-7u1nYw+DxMeVG/[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.user |
|---|---|
| Message-ID | <[email protected]> |
> On Tue, Feb 11, 2025 at 10:43:40AM -0700, Zube wrote:
>
> > ocsp: Error starting accept
> > 40A40B25FE7E0000:error:80000061:system library:BIO_socket:Address family not supported by protocol:crypto/bio/bio_sock2.c:50:calling socket()
> > 40A40B25FE7E0000:error:10000076:BIO routines:BIO_socket:unable to create socket:crypto/bio/bio_sock2.c:52:
> > 40A40B25FE7E0000:error:80000061:system library:acpt_state:Address family not supported by protocol:crypto/bio/bss_acpt.c:235:calling socket(::, 0)
> > 40A40B25FE7E0000:error:10000076:BIO routines:acpt_state:unable to create socket:crypto/bio/bss_acpt.c:238:
>
> You should have better luck with the below short-term work-around:
>
> --- a/apps/lib/http_server.c
> +++ b/apps/lib/http_server.c
> @@ -222,7 +222,7 @@ BIO *http_server_init_bio(const char *prog, const char *port)
> int asock;
> char name[40];
>
> - snprintf(name, sizeof(name), "[::]:%s", port); /* port may be "0" */
> + snprintf(name, sizeof(name), "0.0.0.0:%s", port); /* port may be "0" */
> bufbio = BIO_new(BIO_f_buffer());
> if (bufbio == NULL)
> goto err;
Thanks, most sincerely, for sending this along.
It fixes 79-test_http.t quite nicely, but 80-test_cmp_http.t, alas, still fails:
# cmp_main:apps/cmp.c:2833:CMP info: using section(s) 'Mock connection' of OpenSSL configuration file '../Mock/test.cnf'
# opt_str:apps/cmp.c:2317:CMP warning: -proxy option argument is empty string, resetting option
# setup_client_ctx:apps/cmp.c:2009:CMP info: will contact http://[::1]:36403/pkix/
# CMP info: sending IR
# CMP error: Address family not supported by protocol:calling socket()
# CMP error: unable to create socket
# CMP error: Address family not supported by protocol:calling socket(::1, 36403)
# CMP error: unable to create socket
# CMP error: transfer error:request sent: IR, expected response: IP
../../../../util/wrap.pl ../../../../apps/openssl cmp -config ../Mock/test.cnf -section 'Mock connection' -certout ../../../../test-runs/test_cmp_http/test.ce
rt.pem -proxy '' -no_proxy 127.0.0.1 -server '[::1]:36403' => 1
not ok 3 - disabled as not supported by some host IP configurations: server IPv6 address
# ------------------------------------------------------------------------------
# Looks like you failed 1 test of 39.
not ok 1 - CMP app CLI Mock connection
80-test_cmp_http.t ................. 5/? ---------------------------------------
# Looks like you failed 1 test of 6.
sh: line 1: 463390 Killed ../../../../util/wrap.pl ../../../../apps/openssl cmp -config server.cnf 2> ../../../../test-runs/test_cmp_http/err
80-test_cmp_http.t ................. Dubious, test returned 1 (wstat 256, 0x100)
Cheers.
--
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/Z6u27FtFe7xtu7Fw%40quantum.stat.colostate.edu.