| Message ID | 0c672d80dbb4ba15fff71ff55d3afeafe7237bec-HTML@gerrit.openvpn.net | 
|---|---|
| State | Superseded | 
| Headers | show
   Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:3a0b:b0:5b9:581e:f939 with SMTP id
 v11csp1659903man;
        Sun, 3 Nov 2024 12:19:37 -0800 (PST)
X-Forwarded-Encrypted: i=2;
 AJvYcCUqhh1yZo25kqXvaioqg0Hrza7Juc0P5DtKLZYMvLnl112hTqPhbJKyGCME+KD39OWPese15yxuRrs=@openvpn.net
X-Google-Smtp-Source: 
 AGHT+IHTy4EZTiB6F4fhDTdfijt6f25rDgP+OjOIw+FSqgMM6HdWLE0ybfegtc/t0p6NKZN57Gj4
X-Received: by 2002:a92:c544:0:b0:3a0:8d60:8ba7 with SMTP id
 e9e14a558f8ab-3a6b02f128cmr99916345ab.14.1730665176930;
        Sun, 03 Nov 2024 12:19:36 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1730665176; cv=none;
        d=google.com; s=arc-20240605;
        b=QbfEkiFdn5VN2eobLNNlfGyKAETy9TZLIdman6aR/HpRZmj5VSyz3+0pq+w5uMOjzM
         663uabSWm/FMxohWcICFAn7y9Fq2va+YHacnySWkIly+fiHGcEb1yjeFor6AqRlNoyjK
         4LEMl/S53rQVvug5d8uVZf1k2vqhO28XUqKHEfDwZ0iMimWg/Txx4sSUG29ItxdkOYsY
         Vh4GsTnpfoBLAT/LzEI8Pytej6C7qLOkp7AKMUIl2gek8rfcTjl9gPyIuOnnwe+/E2PZ
         MbQQShI7t0SX7ZaOnJ6wfzN1tT3vVvWO8rg9fwoUtA+5BnUJK/Hc8fd8z+tqOUhzaDV8
         aqtg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605;
        h=errors-to:cc:reply-to:list-subscribe:list-help:list-post
         :list-archive:list-unsubscribe:list-id:precedence:subject:user-agent
         :mime-version:message-id:references:auto-submitted:to:date:from
         :dkim-signature:dkim-signature:dkim-signature;
        bh=NikrvZcu+FxyhxYySSz1yKPvZvVfxcvjKb/jOVba3Do=;
        fh=U7wEyxtwz2o5+UdevFSA47vNeG9knhWH0KV//QhD5a0=;
        b=UpsXFm272XisEIb6tAd4q1RdDPFbaFloK/Mny18HxLjUOiiIFsfH/4h/VtpPxqNkO+
         KmCeEH0kvru46LHjwCEr35vSxUYnCZBqcplR/6X67PJCzGOAdHNHNhoSa8jnubiBYlXN
         8mCbwZlBp2iYvHoAr2V/Rg/FDPC4fy/5/wKiTiqCZhVhHF5bafCH+U0UYYHwSCKICFtg
         GT0xl6a0UJjJ36O4pM0V+kNi/YGtsLloEBaxzsp4hx2ns6VWoxWni8xy9JwfP8EXXf58
         AKD4tlg5TVcY20t7uqz2Xuip63EepfyuPq1WlXwiuZHEi0G57QwVaTRxXhU24+ANl9yU
         hJgA==;
        dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=neutral (body hash did not verify) header.i=@sourceforge.net
 header.s=x header.b=mJ5ix+Ns;
       dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
 header.b=R6IVRrMo;
       dkim=neutral (body hash did not verify) header.i=@openvpn.net
 header.s=google header.b="V/Er1sXB";
       spf=pass (google.com: domain of
 openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
 permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvpn.net;
       dara=fail header.i=@openvpn.net
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
        by mx.google.com with ESMTPS id
 8926c6da1cb9f-4de0496bfcfsi4665720173.90.2024.11.03.12.19.36
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
        Sun, 03 Nov 2024 12:19:36 -0800 (PST)
Received-SPF: pass (google.com: domain of
 openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
 permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
       dkim=neutral (body hash did not verify) header.i=@sourceforge.net
 header.s=x header.b=mJ5ix+Ns;
       dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
 header.b=R6IVRrMo;
       dkim=neutral (body hash did not verify) header.i=@openvpn.net
 header.s=google header.b="V/Er1sXB";
       spf=pass (google.com: domain of
 openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
 permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvpn.net;
       dara=fail header.i=@openvpn.net
Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com)
	by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95)
	(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
	id 1t7h4E-0002NI-15;
	Sun, 03 Nov 2024 20:19:21 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
 by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
 (envelope-from <gerrit@openvpn.net>) id 1t7h4D-0002NB-8f
 for openvpn-devel@lists.sourceforge.net;
 Sun, 03 Nov 2024 20:19:20 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=sourceforge.net; s=x; h=Content-Type:Content-Transfer-Encoding:MIME-Version
 :Message-ID:Reply-To:References:Subject:List-Unsubscribe:List-Id:Cc:To:Date:
 From:Sender:Content-ID:Content-Description:Resent-Date:Resent-From:
 Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Help:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=J7if0b22LJ3lJCeiVhfeTh6lKNkmJdhj/23S5s9NJYo=; b=mJ5ix+NsHFxf+rxf8mWG+pwwW5
 Ex9i9PjGMegAAQgnQ59T9b0AM6FXjIcrunsGdG9kk5QXYq0rJ/Ego9xFcFFiPLRhn68rMHz/TpJkQ
 taDifKt+lp7phRTGEE9/L6q2PgBLp2wg+dZrpmsny+GJZ8PpVszEga8e9tE9s4m1TcRQ=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
 ;
 h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Reply-To:
 References:Subject:List-Unsubscribe:List-Id:Cc:To:Date:From:Sender:Content-ID
 :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:
 Resent-Cc:Resent-Message-ID:In-Reply-To:List-Help:List-Subscribe:List-Post:
 List-Owner:List-Archive; bh=J7if0b22LJ3lJCeiVhfeTh6lKNkmJdhj/23S5s9NJYo=; b=R
 6IVRrMotzq+6DCXxuuQJkn4rvqLDO3V3FxS8sbAU+uQt0Wi2vkpu3Fdk7JlflfC44M5PB3TzghXCC
 JwFogASCJYpdF7XTPPlHnucKRW8NEqEmJRcEUPWA15hPmx/GyoOCWDxyfGbROBkljSF4bvEwQ7U52
 9tPYvzbfJW5uzs9w=;
Received: from mail-wr1-f42.google.com ([209.85.221.42])
 by sfi-mx-2.v28.lw.sourceforge.com with esmtps
 (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95)
 id 1t7h4B-0008A2-Nj for openvpn-devel@lists.sourceforge.net;
 Sun, 03 Nov 2024 20:19:20 +0000
Received: by mail-wr1-f42.google.com with SMTP id
 ffacd0b85a97d-37d4ba20075so2441334f8f.0
 for <openvpn-devel@lists.sourceforge.net>;
 Sun, 03 Nov 2024 12:19:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=openvpn.net; s=google; t=1730665148; x=1731269948;
 darn=lists.sourceforge.net;
 h=user-agent:content-disposition:content-transfer-encoding
 :mime-version:message-id:reply-to:references:subject
 :list-unsubscribe:list-id:auto-submitted:cc:to:date:from:from:to:cc
 :subject:date:message-id:reply-to;
 bh=J7if0b22LJ3lJCeiVhfeTh6lKNkmJdhj/23S5s9NJYo=;
 b=V/Er1sXBdMB0t0tkUXBTPzL2WxVccc0IhnUoMm9sgtmCjRSST4+5l++eZrsNDiOd2R
 d5RrDeR1+t6GUWT94gPMf6IkCDTeKy/i/Pje3tSSjO6bBgPdiZyBCvKlgCW0KiYXL9TG
 ILTx42xjneMAv/6HJbogCdWh7IgQe85KPbuY41jdJ9IaXmRUaxO3TRx6quoesndz3mYO
 A4Q2O1rfaY0SSKrsRQLJ25V5plVZVzPVkUmEaWLEAVLqtaVMpizmUiatrpQMK6tvHaLe
 KLmQGb4HGSgV03s4LckryZOq30DuaqApyH7GBaqve+BeHdaLnmGMU3dRxyTXAeHD/Xzf
 qenA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1730665148; x=1731269948;
 h=user-agent:content-disposition:content-transfer-encoding
 :mime-version:message-id:reply-to:references:subject
 :list-unsubscribe:list-id:auto-submitted:cc:to:date:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=J7if0b22LJ3lJCeiVhfeTh6lKNkmJdhj/23S5s9NJYo=;
 b=CM4s2PDPiBI4GkOCSD8eI5RqQ0nsNUvBd6jGM+8XPMZpz1yNLGoP4psrmiuBD3WX3c
 cB4VLHDhPUddM3z71+EBMGuPaCjTTJwLxcH426VTORUI4Xun+TQG0b4HLx7qxQFTXrpL
 VvRj22f5QvtzWUnzdFu9qWnudF6Yj8+hhK4S5gaBlljr4cVqoCKUgzCpcbYYnOAF1xTt
 qZrbJ/bMPntCR8TMD504LwBmvYFiSXheob5f9upohxO9Ll7lMlNYcazJTwVqvKbgz/rn
 E70+4F459ekY1BhU8I3t6uQ8VDiTcSW4GpGldp+WEh33WljD0/770QBICLgK9au9tBdU
 J1dw==
X-Gm-Message-State: AOJu0YzmK1aNfL5vsAOPwrbfVPtKolzc32oyK7dqUCbB7z93t/cW5PQS
 /IU8AXQFpeY4pjtYj6qCRorONp3384CpeP028q6HM+jSeu6VJLSYmS+AVyYE/qo=
X-Received: by 2002:a05:6000:178a:b0:374:babf:ac4f with SMTP id
 ffacd0b85a97d-381be7652f7mr12088573f8f.12.1730665148055;
 Sun, 03 Nov 2024 12:19:08 -0800 (PST)
Received: from gerrit.openvpn.in
 (ec2-18-159-0-78.eu-central-1.compute.amazonaws.com. [18.159.0.78])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-381c10b7b32sm11380623f8f.18.2024.11.03.12.19.07
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Nov 2024 12:19:07 -0800 (PST)
From: "cron2 (Code Review)" <gerrit@openvpn.net>
X-Google-Original-From: "cron2 (Code Review)" <gerrit@gerrit.openvpn.in>
X-Gerrit-PatchSet: 1
Date: Sun, 3 Nov 2024 20:19:07 +0000
To: plaisthos <arne-openvpn@rfc2549.org>, flichtenheld <frank@lichtenheld.com>
Auto-Submitted: auto-generated
X-Gerrit-MessageType: newchange
X-Gerrit-Change-Id: Id2b0c5a517f02e5c219fea2ae3ef2bdef7690169
X-Gerrit-Change-Number: 793
X-Gerrit-Project: openvpn
X-Gerrit-ChangeURL: <http://gerrit.openvpn.net/c/openvpn/+/793?usp=email>
X-Gerrit-Commit: ca2856ee3a776c91619531d3df61584a842be3ea
References: 
 <gerrit.1730665141000.Id2b0c5a517f02e5c219fea2ae3ef2bdef7690169@gerrit.openvpn.net>
Message-ID: <0c672d80dbb4ba15fff71ff55d3afeafe7237bec-HTML@gerrit.openvpn.net>
MIME-Version: 1.0
User-Agent: Gerrit/3.8.2
X-Spam-Score: -0.2 (/)
X-Spam-Report: Spam detection software,
 running on the system "util-spamd-2.v13.lw.sourceforge.com",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Attention is currently required from: flichtenheld,
 plaisthos.
 Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit
 Content analysis details:   (-0.2 points, 6.0 required)
 pts rule name              description
 ---- ----------------------
 --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.221.42 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.221.42 listed in wl.mailspike.net]
 0.0 WEIRD_PORT             URI: Uses non-standard port number for HTTP
 0.0 HTML_MESSAGE           BODY: HTML included in message
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature,
 not necessarily
 valid
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted
 Colors in HTML
X-Headers-End: 1t7h4B-0008A2-Nj
Subject: [Openvpn-devel] [XS] Change in openvpn[master]: send uname()
 release as IV_PLAT_VER= on non-windows versions
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
 <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: 
 <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
 <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Reply-To: gert@greenie.muc.de, arne-openvpn@rfc2549.org,
 openvpn-devel@lists.sourceforge.net, frank@lichtenheld.com
Cc: openvpn-devel <openvpn-devel@lists.sourceforge.net>
Content-Type: multipart/mixed; boundary="===============7289020288483651084=="
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: =?utf-8?q?1814733968500013922?=
X-GMAIL-MSGID: =?utf-8?q?1814733968500013922?=
X-getmail-filter-classifier: gerrit message type newchange
    | 
 
| Series | 
   
    [Openvpn-devel,XS] Change in openvpn[master]: send uname() release as IV_PLAT_VER= on non-windows versions
    |
   expand
   
  | 
 
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 8040e7b..8632832 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -2010,6 +2010,10 @@ buf_printf(&out, "IV_SSL=%s\n", get_ssl_library_version() ); #if defined(_WIN32) buf_printf(&out, "IV_PLAT_VER=%s\n", win32_version_string(&gc, false)); +#else + struct utsname u; + uname(&u); + buf_printf(&out, "IV_PLAT_VER=%s\n", u.release); #endif } diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h index 83a48fc..33a90c1 100644 --- a/src/openvpn/syshead.h +++ b/src/openvpn/syshead.h @@ -331,6 +331,10 @@ #include <sys/mman.h> #endif +#ifndef _WIN32 +#include <sys/utsname.h> +#endif + /* * Pedantic mode is meant to accomplish lint-style program checking, * not to build a working executable.
Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/793?usp=email to review the following change. Change subject: send uname() release as IV_PLAT_VER= on non-windows versions ...................................................................... send uname() release as IV_PLAT_VER= on non-windows versions This is highly system specific, as the content of the uname() structure elements is not specified very well - uname(3) says: release Release level of the operating system which translates to "IV_PLAT_VER=13.3-RELEASE-p6" (FreeBSD) or "IV_PLAT_VER=22.6.0" (macOS) - the latter being the "Mach Kernel version", not what Apple calls the OS. It's still useful if a server operator needs to keep track of client versions (and the GUI does not set the corresponding environment variable, which neither Tunnelblick nor NM do). Change-Id: Id2b0c5a517f02e5c219fea2ae3ef2bdef7690169 Signed-off-by: Gert Doering <gert@greenie.muc.de> --- M src/openvpn/ssl.c M src/openvpn/syshead.h 2 files changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/93/793/1