From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8BDBAa7dkmD09gAAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 20:02:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8D/7OK3dkmAuHQAAB5/wlQ (envelope-from ) for ; Wed, 05 May 2021 18:02:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3F6E8139E2 for ; Wed, 5 May 2021 20:02:21 +0200 (CEST) Received: from localhost ([::1]:48288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leLqm-0007KF-Al for larch@yhetil.org; Wed, 05 May 2021 14:02:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leLqV-0007JI-98 for guix-patches@gnu.org; Wed, 05 May 2021 14:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leLqU-0004JV-Nl for guix-patches@gnu.org; Wed, 05 May 2021 14:02:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leLqU-0007Xk-L3 for guix-patches@gnu.org; Wed, 05 May 2021 14:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48242] [PATCH] gnu: oath-toolkit: Build libpskc and pskctool. Resent-From: Simon Josefsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 May 2021 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48242 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48242@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162023766528980 (code B ref -1); Wed, 05 May 2021 18:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2021 18:01:05 +0000 Received: from localhost ([127.0.0.1]:33641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leLpZ-0007XM-54 for submit@debbugs.gnu.org; Wed, 05 May 2021 14:01:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:48564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leLpW-0007X5-5k for submit@debbugs.gnu.org; Wed, 05 May 2021 14:01:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leLpV-0006gy-Af for guix-patches@gnu.org; Wed, 05 May 2021 14:01:01 -0400 Received: from uggla.sjd.se ([2001:9b1:8633::107]:55210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leLpR-0003Yd-I2 for guix-patches@gnu.org; Wed, 05 May 2021 14:01:01 -0400 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2101; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ofV3bUJYbr6x58KGMOLeCSDUc1BdJJtcy09FLmHX3Rg=; t=1620237649; x=1621447249; b=gvgYroc6/UsRZtabkn6a6L+MZMtHeXODT16LPMxopI3MKmgBcQzyDnSx8TQuY2Jn6UKgS6ts/T UwpRtwUyV7BQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2101; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ofV3bUJYbr6x58KGMOLeCSDUc1BdJJtcy09FLmHX3Rg=; t=1620237649; x=1621447249; b=rjICTKjHeFkzhDcUsbKamrefteCn03ojhOUX/QAxdzCIrgQVYJDvhPxod+TmDDLoovdpxADP6W VXHvQMwRlo4qFPCo1/n43zK9bVSvO4+wcPk4p9veW2iSddJX+K9D/gyIcQ88c0XnDfvaFMxlvUJ9v DZBu/lxUw152l4m/K/AnyPAQPOh/joWbCoF/+Wv8EvtcHG6ibkReiz4idO6+JZQEDwlWxwSVpK89a TWwBiJq6nF0lbu8uaOr/drkBp95Yb7wbsgbtYT2Q/ZZl33gl8dIotZG54LWVV+Xxg/0+w+N/IKglY eYIlpmxUOE70T7AebK9n3s2Zt1RdppLgiKATSlYEy9FcS1mfjzlC3P6cfQoK2mxzPSkaZJF/eM24F doOobbrQ8i43r3eYLxNienB0r+u/fvAdgRPIknLrYFAUXQRE3stFKTrNHhypLmx25AF2/T8oVD ; Received: from [2001:9b1:41ac:ff00:7d76:e4e8:57ec:6d7d] (port=48794 helo=latte) by uggla.sjd.se with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leLpF-0006iq-NO for guix-patches@gnu.org; Wed, 05 May 2021 18:00:45 +0000 X-Hashcash: 1:22:210505:guix-patches@gnu.org::Z57puzvAMZxY5orm:1AX6 OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt Date: Wed, 05 May 2021 20:00:45 +0200 Message-ID: <8735v13vsi.fsf@latte.josefsson.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:9b1:8633::107; envelope-from=simon@josefsson.org; helo=uggla.sjd.se X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Simon Josefsson X-ACL-Warn: , Simon Josefsson via Guix-patches From: Simon Josefsson via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620237741; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature:openpgp:openpgp; bh=ofV3bUJYbr6x58KGMOLeCSDUc1BdJJtcy09FLmHX3Rg=; b=WbhxFfhsWDFgPYBVrSsUz41m2bmf7jkji4jknR/+v6oKyVHXpgEFeE6pdRxfmQdDesM2Fe 2a5poZYVHXho2OMuZ8z/hQs0kD1SG7eOiHhj88kOLSej4hAJGD64D6JmM+MPFygNGeW448 YP0fLt7KV4Ew3troW85cQfigGUogI/VRz4oCYNF6Nn4+w4Ff/yL1hrWJOWX3V1heZHvMAs 6yWzKQukGvUwhOGGPkfc7Wh/Ch5vrgxVRBMJqxXuUwAaX0htulElexExXhNbCLjKfXWHyp npl7q8cBE8b1qZpHW3w8JL1js1lim7+l0uZ9XJdY6gB50KpS4g3VFHwV1vydYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620237741; a=rsa-sha256; cv=none; b=nvOjbGtJ8X02ebyXBwGxpXCfviBTiWykpsYXlxWRcCJMQF6F5V18CeUS1BU+uSS4s5e5U4 cfrbH9MMNi5NjqJEbrJmpLuMMdl6tgq0g3tsRhio0BO+szUGTbQJYXrakTRswDDaIVCsr9 w+Q9AQb1767n7O8Def+EWZde0bjt+nLbzy+9ss347af59/x6UCPH7HeXe/mh0/97Rl/8bT mC0EY3DIXia/zf7z6QWx4x7sCtj4h2mV0R4clOLtNMzcaNeMkwyQJO8LzUJDD/AvBJGOQp I47TPbs/fDuQP9DXwhUy2GzP+VzR9L9+lhvo4XVpubd83o1hJErq63YAKHYuxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2101 header.b=gvgYroc6; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2101 header.b=rjICTKjH; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -5.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2101 header.b=gvgYroc6; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2101 header.b=rjICTKjH; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3F6E8139E2 X-Spam-Score: -5.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: oK5XNN6bYH4i --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi! This patch enables libpskc and pskctool in OATH Toolkit, using the newly added xmlsec-openssl (thanks!). /Simon --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-oath-toolkit-Build-libpskc-and-pskctool.patch Content-Transfer-Encoding: quoted-printable From=202a41fd3df92acf84e9377fbe02a18b8cacf12dec Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Wed, 5 May 2021 19:56:17 +0200 Subject: [PATCH] gnu: oath-toolkit: Build libpskc and pskctool. * gnu/packages/authentication.scm (oath-toolkit): Use xmlsec-openssl to ena= ble libpskc and pskctool. =2D-- gnu/packages/authentication.scm | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.= scm index c7b58b3e61..d0fef39cb2 100644 =2D-- a/gnu/packages/authentication.scm +++ b/gnu/packages/authentication.scm @@ -23,6 +23,8 @@ #:use-module (gnu packages documentation) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages xml) + #:use-module (gnu packages tls) #:use-module (gnu packages security-token) #:use-module (guix build-system gnu) #:use-module (guix download) @@ -45,7 +47,9 @@ (arguments ;; TODO =E2=80=98--enable-pskc=E2=80=99 causes xmlsec-related test su= ite failures. `(#:configure-flags =2D (list "--enable-pam") + (list "--enable-pam" + "--enable-pskc" + "--with-xmlsec-crypto-engine=3Dopenssl") #:phases (modify-phases %standard-phases (add-after 'install 'delete-static-libraries @@ -55,16 +59,15 @@ (for-each delete-file (find-files lib "\\.a$")) #t)))))) (native-inputs =2D `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ;; XXX: Perhaps this should be propagated from xmlsec. + ("libltdl" ,libltdl))) (inputs =2D `(("linux-pam" ,linux-pam))) ; for --enable-pam + `(("xmlsec-openssl" ,xmlsec-openssl) + ("openssl" ,openssl) + ("linux-pam" ,linux-pam))) ; for --enable-pam (home-page "https://www.nongnu.org/oath-toolkit/") (synopsis "One-time password (OTP) components") =2D ;; TODO Add the following items after they've been enabled. =2D ;; @item @command{pskctool}, a command-line tool for manipulating se= cret key =2D ;; files in the Portable Symmetric Key Container (@dfn{PSKC}) format =2D ;; described in RFC6030. =2D ;; @item @code{libpskc}, a shared and static C library for PSKC hand= ling. (description "The @dfn{OATH} (Open AuTHentication) Toolkit provides various compon= ents for building one-time password (@dfn{OTP}) authentication systems: @@ -72,11 +75,16 @@ for building one-time password (@dfn{OTP}) authenticati= on systems: @itemize @item @command{oathtool}, a command-line tool for generating & validating = OTPs. @item @code{liboath}, a C library for OATH handling. +@item @command{pskctool}, a command-line tool for manipulating secret key +files in the Portable Symmetric Key Container (@dfn{PSKC}) format +described in RFC6030. +@item @code{libpskc}, a shared and static C library for PSKC handling. @item @code{pam_oath}, a PAM module for pluggable login authentication. @end itemize =20 =2DSupported technologies include the event-based @dfn{HOTP} algorithm (RFC= 4226) =2Dand the time-based @dfn{TOTP} algorithm (RFC6238).") +Supported technologies include the event-based $dfn{HOTP} algorithm (RFC42= 26), +the time-based @dfn{TOTP} algorithm (RFC6238), and Portable Symmetric Key +Container (@dfn{PSKC}, RFC6030) to manage secret key data.") (license (list license:lgpl2.1+ ; the libraries (liboath/ & libpsk= c/) license:gpl3+)))) ; the tools (everything else) =20 =2D-=20 2.20.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQSjzJyHC50xCrrUzy9RcisI/kdFogUCYJLdTQAKCRBRcisI/kdF oljVAP9h8dckdUnV2fs/02Launsj1FMTOs8+cCC8Zgnw9HF2/AEA9hm/ekBEDY9P IqamrNGuHYbq8/4lYPrgS8h5crk8HAg= =KdRO -----END PGP SIGNATURE----- --==-=-=--