Update p5-Net-Server to 2.010.

Sort makefile according to template.
This NetSSLey implementation is full of races.  Prevent TLS 1.3.
With TLS 1.2 the test passes as the protocol is less aggessive.
This commit is contained in:
bluhm 2022-03-09 22:28:38 +00:00
parent 2fd61ece30
commit e2030e309b
5 changed files with 31 additions and 18 deletions

View File

@ -1,18 +1,19 @@
# $OpenBSD: Makefile,v 1.25 2021/05/15 15:29:35 giovanni Exp $
COMMENT = extensible framework for Perl server engines
MODULES = cpan
PKG_ARCH = *
DISTNAME = Net-Server-2.009
CATEGORIES = devel net
REVISION = 1
DISTNAME = Net-Server-2.010
# perl
CATEGORIES = devel net
# Perl
PERMIT_PACKAGE = Yes
MODULES = cpan
MODCPAN_EXAMPLES = Yes
RUN_DEPENDS = net/p5-IO-Socket-INET6
TEST_DEPENDS = devel/p5-IO-Multiplex
RUN_DEPENDS = net/p5-IO-Socket-INET6
TEST_DEPENDS = devel/p5-IO-Multiplex \
security/p5-Net-SSLeay
PKG_ARCH = *
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (Net-Server-2.009.tar.gz) = gmfGVgNV4uD0g9PMFhlfNC8y/hPK6d3nWgoezl6agT8=
SIZE (Net-Server-2.009.tar.gz) = 146781
SHA256 (Net-Server-2.010.tar.gz) = lfw4Crwy6u+EQG7MSwFhLHIV9jdTGP25WQG+G6vRpuE=
SIZE (Net-Server-2.010.tar.gz) = 145901

View File

@ -0,0 +1,14 @@
Non blocking SSL does not use read or write properly. With TLS 1.2
it works by accident. Do not use TLS 1.3.
Index: lib/Net/Server/Proto/SSLEAY.pm
--- lib/Net/Server/Proto/SSLEAY.pm.orig
+++ lib/Net/Server/Proto/SSLEAY.pm
@@ -150,6 +150,7 @@ sub bind_SSL {
my $ctx = Net::SSLeay::CTX_new(); $sock->SSLeay_check_fatal("SSLeay bind_SSL CTX_new");
Net::SSLeay::CTX_set_options($ctx, Net::SSLeay::OP_ALL()); $sock->SSLeay_check_fatal("SSLeay bind_SSL CTX_set_options");
+ Net::SSLeay::CTX_set_max_proto_version($ctx, Net::SSLeay::TLS1_2_VERSION());
# 0x1: SSL_MODE_ENABLE_PARTIAL_WRITE
# 0x10: SSL_MODE_RELEASE_BUFFERS (ignored before OpenSSL v1.0.0)

View File

@ -1,10 +1,9 @@
$OpenBSD: patch-lib_Net_Server_Proto_pm,v 1.1 2016/07/30 21:36:45 sthen Exp $
We don't have the sysctl any more, resulting in this binding to v6 only.
--- lib/Net/Server/Proto.pm.orig Sat Jul 30 22:30:09 2016
+++ lib/Net/Server/Proto.pm Sat Jul 30 22:31:49 2016
@@ -166,10 +166,7 @@ sub get_addr_info {
Index: lib/Net/Server/Proto.pm
--- lib/Net/Server/Proto.pm.orig
+++ lib/Net/Server/Proto.pm
@@ -162,10 +162,7 @@ sub get_addr_info {
}
sub _bindv6only {

View File

@ -1,4 +1,3 @@
@comment $OpenBSD: PLIST,v 1.9 2012/06/28 14:39:50 giovanni Exp $
bin/net-server
${P5SITE}/Net/
${P5SITE}/Net/Server/