From patchwork Tue Jan 30 22:49:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Schwabe X-Patchwork-Id: 225 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director6.mail.ord1d.rsapps.net ([172.28.255.1]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id K2aEOF2RcVqbEQAAgoeIoA for ; Wed, 31 Jan 2018 04:50:21 -0500 Received: from director8.mail.ord1c.rsapps.net ([172.28.255.1]) by director6.mail.ord1d.rsapps.net (Dovecot) with LMTP id vXTTDl2RcVrjJAAAhgvE6Q ; Wed, 31 Jan 2018 04:50:21 -0500 Received: from smtp59.gate.ord1a ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by director8.mail.ord1c.rsapps.net (Dovecot) with LMTP id DC9sBV2RcVppNwAAPBwpBw ; Wed, 31 Jan 2018 04:50:21 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.34.181.88] Authentication-Results: smtp59.gate.ord1a.rsapps.net; iprev=pass policy.iprev="216.34.181.88"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=rfc2549.org X-Classification-ID: 266db744-066c-11e8-a161-842b2b4126a2-1-1 Received: from [216.34.181.88] ([216.34.181.88:19856] helo=lists.sourceforge.net) by smtp59.gate.ord1a.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 1E/AE-17683-C51917A5; Wed, 31 Jan 2018 04:50:20 -0500 Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1egp1L-0002oV-9p; Wed, 31 Jan 2018 09:49:35 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1egp1J-0002oM-MN for openvpn-devel@lists.sourceforge.net; Wed, 31 Jan 2018 09:49:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:In-Reply-To:Message-Id:Date:Subject:To: From:Sender:Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=g/U5LLxfOzrzDJq78kfkwemhf7ardscGtbS1cPhZgcw=; b=cG3dy7Zg21qPz30KhqthyKGqDl eVesTvDm2VHvMGvrzvvROcrxXzj0U/L80ziRpoWv/SU0sFfL/2B12RPOWfzXRfcJqrkBB5jbOiZUw tA8fPTsxkYKuC+5Nxv9u97cD8KkMIp2Q9FzvZA/IDulOxNXv1+TZeq/d+m4d8/iIuptM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc :MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=g/U5LLxfOzrzDJq78kfkwemhf7ardscGtbS1cPhZgcw=; b=EChGrHidjfW9lzikO3Fc8C49UB gIXgBrwS5x606yBGgcvWJ7ImbSsorCO2Scm28bgH2obdekygoZChk5qG4TbbHT5fK9eC7XKz2PZv6 Jsobd/pVlFiqaXidhV3tSNgZNyk1fcq4WT5K+coIrj06zzEknYTb06uG4vsyyJttRehQ=; Received: from mail.blinkt.de ([192.26.174.232]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) id 1egp1E-00026k-Ep for openvpn-devel@lists.sourceforge.net; Wed, 31 Jan 2018 09:49:33 +0000 Received: from kamera.blinkt.de ([2001:638:502:390:20c:29ff:fec8:535c]) by mail.blinkt.de with smtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1egp18-00065v-B1 for openvpn-devel@lists.sourceforge.net; Wed, 31 Jan 2018 10:49:22 +0100 Received: (nullmailer pid 21542 invoked by uid 10006); Wed, 31 Jan 2018 09:49:22 -0000 From: Arne Schwabe To: openvpn-devel@lists.sourceforge.net Date: Wed, 31 Jan 2018 10:49:22 +0100 Message-Id: <1517392162-21501-1-git-send-email-arne@rfc2549.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1egp1E-00026k-Ep Subject: [Openvpn-devel] [PATCH v2] show the right string for key-direction X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox V2: print also a nice string if direction is not set --- src/openvpn/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 66e1f9d1..f405d8a2 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -1706,7 +1706,7 @@ show_settings(const struct options *o) #endif SHOW_STR(shared_secret_file); - SHOW_INT(key_direction); + SHOW_PARM(key_direction, keydirection2ascii(o->key_direction, false), "%s"); SHOW_STR(ciphername); SHOW_BOOL(ncp_enabled); SHOW_STR(ncp_ciphers);