From owner-dev-commits-ports-all@freebsd.org Fri Aug 6 14:14:32 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D69EA657AC8; Fri, 6 Aug 2021 14:14:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gh6tJ4Ck2z4fpn; Fri, 6 Aug 2021 14:14:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 758C8740B; Fri, 6 Aug 2021 14:14:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 176EEWQN030044; Fri, 6 Aug 2021 14:14:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 176EEWGo030043; Fri, 6 Aug 2021 14:14:32 GMT (envelope-from git) Date: Fri, 6 Aug 2021 14:14:32 GMT Message-Id: <202108061414.176EEWGo030043@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Guangyuan Yang Subject: git: 033715ebea05 - 2021Q3 - net/socketw: Update to 3.10.27 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ygy X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q3 X-Git-Reftype: branch X-Git-Commit: 033715ebea0515320f24b2d0984274e97b7a2140 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 14:14:32 -0000 The branch 2021Q3 has been updated by ygy: URL: https://cgit.FreeBSD.org/ports/commit/?id=033715ebea0515320f24b2d0984274e97b7a2140 commit 033715ebea0515320f24b2d0984274e97b7a2140 Author: Thibault Payet AuthorDate: 2021-08-06 14:07:50 +0000 Commit: Guangyuan Yang CommitDate: 2021-08-06 14:14:05 +0000 net/socketw: Update to 3.10.27 Changelog: https://github.com/RigsOfRods/socketw/releases/tag/3.10.27 PR: 257657 (cherry picked from commit b69b6e55f09ddc759b3fc8b9a9275c3a19a817bb) --- net/socketw/Makefile | 3 +- net/socketw/distinfo | 6 +-- net/socketw/files/patch-src_sw__ssl.cxx | 83 --------------------------------- 3 files changed, 4 insertions(+), 88 deletions(-) diff --git a/net/socketw/Makefile b/net/socketw/Makefile index 85b215873a94..1a28d3797bd2 100644 --- a/net/socketw/Makefile +++ b/net/socketw/Makefile @@ -1,7 +1,7 @@ # Created by: Thibault Payet PORTNAME= socketw -PORTVERSION= 3.10.26.20180918 +DISTVERSION= 3.10.27 CATEGORIES= net MAINTAINER= monwarez@mailoo.org @@ -13,7 +13,6 @@ USES= cmake ssl:build USE_GITHUB= yes GH_ACCOUNT= RigsOfRods -GH_TAGNAME= f8db442 CFLAGS+= -I${OPENSSLINC} diff --git a/net/socketw/distinfo b/net/socketw/distinfo index 6635bb180ebb..dd45ffd2db08 100644 --- a/net/socketw/distinfo +++ b/net/socketw/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1539420870 -SHA256 (RigsOfRods-socketw-3.10.26.20180918-f8db442_GH0.tar.gz) = 94c670bac6f5ec4fa2f37773db43fdb77d9127065af386d08170fb304d5696ec -SIZE (RigsOfRods-socketw-3.10.26.20180918-f8db442_GH0.tar.gz) = 49810 +TIMESTAMP = 1628243974 +SHA256 (RigsOfRods-socketw-3.10.27_GH0.tar.gz) = 8f25b7ebf85ca12f2c3257e851be2a95819b9ac1ee78884fc4db81c850b5d70e +SIZE (RigsOfRods-socketw-3.10.27_GH0.tar.gz) = 48424 diff --git a/net/socketw/files/patch-src_sw__ssl.cxx b/net/socketw/files/patch-src_sw__ssl.cxx deleted file mode 100644 index 620a936bd279..000000000000 --- a/net/socketw/files/patch-src_sw__ssl.cxx +++ /dev/null @@ -1,83 +0,0 @@ ---- src/sw_ssl.cxx.orig 2018-09-18 09:32:11 UTC -+++ src/sw_ssl.cxx -@@ -4,7 +4,7 @@ - // Started 020316 - // - // License: LGPL v2.1+ (see the file LICENSE) --// (c)2002-2003 Anders Lindström -+// (c)2002-2003 Anders Lindström - - /*********************************************************************** - * This library is free software; you can redistribute it and/or * -@@ -22,6 +22,7 @@ - #include - #include - #include -+#include - - using namespace std; - -@@ -31,7 +32,25 @@ extern int close(int fd); - extern int fcntl(int fd, int cmd, long arg); - #endif - -+#if OPENSSL_VERSION_NUMBER < 0x10100000L - -+int X509_get_signature_nid(const X509* peer) -+{ -+ return OBJ_obj2nid(peer->sig_alg->algorithm); -+} -+int X509_certificate_type(const X509 *, const EVP_PKEY *pubkey) -+{ -+ return pubkey->type; -+} -+ -+int SSL_CTX_up_ref(SSL_CTX *ctx) -+{ -+ return ctx->references++; -+} -+ -+#endif -+ -+ - //==================================================================== - //== Helper functions - //==================================================================== -@@ -557,7 +576,8 @@ bool SWSSLSocket::get_peerCert_info(SWSSLSocket::peerC - info->version = X509_get_version(peer); - - // Signature algorithm -- int nid = OBJ_obj2nid(peer->sig_alg->algorithm); -+ -+ int nid = X509_get_signature_nid(peer); - if( nid != NID_undef ) - info->sgnAlgorithm = OBJ_nid2sn(nid); - else -@@ -566,7 +586,7 @@ bool SWSSLSocket::get_peerCert_info(SWSSLSocket::peerC - // Key algorithm - EVP_PKEY *pkey = X509_get_pubkey(peer); - if( pkey ){ -- info->keyAlgorithm = OBJ_nid2sn(pkey->type); -+ info->keyAlgorithm = OBJ_nid2sn(X509_certificate_type(peer, pkey)); - info->keySize = 8 * EVP_PKEY_size(pkey); - }else{ - info->keyAlgorithm = ""; -@@ -689,7 +709,8 @@ bool SWSSLSocket::check_cert(SWBaseError *error) - } - } - -- if( !(cert = BuildCertificate("SocketW session cert", NULL, NULL, evp_pkey)) ){ -+ char certificateName[22] = "SocketW session cert\0"; -+ if( !(cert = BuildCertificate(certificateName, NULL, NULL, evp_pkey)) ){ - handle_ERRerror(error, fatal, "SWSSLSocket::handle_crypto_data() "); - return false; - } -@@ -718,7 +739,7 @@ SWBaseSocket* SWSSLSocket::create(int socketdescriptor - // Copy CTX object pointer - remoteClass->ctx = ctx; - if( ctx ) -- ctx->references++; // We don't want our destructor to delete ctx if still in use -+ SSL_CTX_up_ref(ctx); - - remoteClass->have_cert = have_cert; // Do CTX have cert loaded? -