Skip to content
Snippets Groups Projects
Commit dca72487 authored by gregor herrmann's avatar gregor herrmann
Browse files

Add patch to fix test with libio-socket-ssl-perl 2.078-1.

Thanks: Lucas Nussbaum for the bug report.
Closes: #1026760
parent a6ebf958
No related branches found
No related tags found
No related merge requests found
Description: fix t/testmodule.t with IO-Socket-SSL
IO-Socket-SSL has in 2.078 reverted the decision from 2014 to not verify
hostname by default if hostname is IP address but no explicit verification
scheme given
https://github.com/noxxi/p5-io-socket-ssl/commit/c0a063b70f0a3ad033da0a51923c65bd2ff118a0
https://github.com/noxxi/p5-io-socket-ssl/issues/121
.
This makes t/testmodule.t fail. Add subjectAltNames with IP: 127.0.0.1 as a
workaround, as in
https://github.com/nginx/nginx-tests/commit/aedae20271d68a9341aff9f925499c367064fcd9
or IO-Socket-SSL's test suite in the above commit.
Origin: vendor
Bug-Debian: https://bugs.debian.org/1026760
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=88998
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2022-12-28
--- a/t/testmodule.t
+++ b/t/testmodule.t
@@ -32,6 +32,7 @@
my ($server_cert, $server_key) = CERT_create(
subject => { commonName => 'IO::Socket::SSL Dummy Server Certificate' },
+ subjectAltNames => [ [ IP => '127.0.0.1' ] ],
CA => 0,
issuer_cert => $ca_cert,
issuer_key => $ca_key,
testmodule.diff
testpost.diff
IO-Socket-SSL.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment