From patchwork Wed May 5 18:00:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Josefsson X-Patchwork-Id: 29139 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 01BFB27BC82; Wed, 5 May 2021 19:02:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 75D1A27BC81 for ; Wed, 5 May 2021 19:02:40 +0100 (BST) Received: from localhost ([::1]:48288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leLr5-0007KF-Gq for patchwork@mira.cbaines.net; Wed, 05 May 2021 14:02:39 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Simon Josefsson X-ACL-Warn: , Simon Josefsson via Guix-patches X-Patchwork-Original-From: Simon Josefsson via Guix-patches via From: Simon Josefsson X-getmail-retrieved-from-mailbox: Patches Hi! This patch enables libpskc and pskctool in OATH Toolkit, using the newly added xmlsec-openssl (thanks!). /Simon From 2a41fd3df92acf84e9377fbe02a18b8cacf12dec 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 enable libpskc and pskctool. --- 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 --- 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 ‘--enable-pskc’ causes xmlsec-related test suite failures. `(#:configure-flags - (list "--enable-pam") + (list "--enable-pam" + "--enable-pskc" + "--with-xmlsec-crypto-engine=openssl") #: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 - `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ;; XXX: Perhaps this should be propagated from xmlsec. + ("libltdl" ,libltdl))) (inputs - `(("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") - ;; TODO Add the following items after they've been enabled. - ;; @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. (description "The @dfn{OATH} (Open AuTHentication) Toolkit provides various components for building one-time password (@dfn{OTP}) authentication systems: @@ -72,11 +75,16 @@ for building one-time password (@dfn{OTP}) authentication 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 -Supported technologies include the event-based @dfn{HOTP} algorithm (RFC4226) -and the time-based @dfn{TOTP} algorithm (RFC6238).") +Supported technologies include the event-based $dfn{HOTP} algorithm (RFC4226), +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/ & libpskc/) license:gpl3+)))) ; the tools (everything else) -- 2.20.1