* [bug#48242] [PATCH] gnu: oath-toolkit: Build libpskc and pskctool.
@ 2021-05-05 18:00 Simon Josefsson via Guix-patches via
2021-05-06 7:13 ` Simon Josefsson via Guix-patches via
2021-05-06 7:50 ` bug#48242: " Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 2 replies; 5+ messages in thread
From: Simon Josefsson via Guix-patches via @ 2021-05-05 18:00 UTC (permalink / raw)
To: 48242
[-- Attachment #1.1: Type: text/plain, Size: 118 bytes --]
Hi! This patch enables libpskc and pskctool in OATH Toolkit, using the
newly added xmlsec-openssl (thanks!).
/Simon
[-- Attachment #1.2: 0001-gnu-oath-toolkit-Build-libpskc-and-pskctool.patch --]
[-- Type: text/x-diff, Size: 3603 bytes --]
From 2a41fd3df92acf84e9377fbe02a18b8cacf12dec Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#48242] [PATCH] gnu: oath-toolkit: Build libpskc and pskctool.
2021-05-05 18:00 [bug#48242] [PATCH] gnu: oath-toolkit: Build libpskc and pskctool Simon Josefsson via Guix-patches via
@ 2021-05-06 7:13 ` Simon Josefsson via Guix-patches via
2021-05-06 7:50 ` bug#48242: " Tobias Geerinckx-Rice via Guix-patches via
1 sibling, 0 replies; 5+ messages in thread
From: Simon Josefsson via Guix-patches via @ 2021-05-06 7:13 UTC (permalink / raw)
To: 48242
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
Simon Josefsson via Guix-patches via <guix-patches@gnu.org> writes:
> +Supported technologies include the event-based $dfn{HOTP} algorithm (RFC4226),
^
That should be @ -- sorry about that, and I hope you can fix it manually
when applying the patch.
/Simon
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#48242: [PATCH] gnu: oath-toolkit: Build libpskc and pskctool.
2021-05-05 18:00 [bug#48242] [PATCH] gnu: oath-toolkit: Build libpskc and pskctool Simon Josefsson via Guix-patches via
2021-05-06 7:13 ` Simon Josefsson via Guix-patches via
@ 2021-05-06 7:50 ` Tobias Geerinckx-Rice via Guix-patches via
2021-05-06 10:21 ` [bug#48242] " Simon Josefsson via Guix-patches via
1 sibling, 1 reply; 5+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-05-06 7:50 UTC (permalink / raw)
To: Simon Josefsson; +Cc: 48242-done
[-- Attachment #1: Type: text/plain, Size: 964 bytes --]
Simon,
Simon Josefsson via Guix-patches via 写道:
> Subject: [PATCH] gnu: oath-toolkit: Build libpskc and pskctool.
Thanks! Pushed as 37fd82177ef33f2d3331f14055c6302001cd7c04 with
minor changes.
> * gnu/packages/authentication.scm (oath-toolkit): Use
> xmlsec-openssl to enable
> libpskc and pskctool.
Expanded to list all changes in our GNU ‘change log’ format.
> + #:use-module (gnu packages xml)
> + #:use-module (gnu packages tls)
Placed these and the new *inputs alphabetically.
> + "--enable-pskc"
> + "--with-xmlsec-crypto-engine=openssl")
The second line used a tab for indentation. Replaced by spaces.
> +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.")
Modified to use @acronym.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-06 22:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-05 18:00 [bug#48242] [PATCH] gnu: oath-toolkit: Build libpskc and pskctool Simon Josefsson via Guix-patches via
2021-05-06 7:13 ` Simon Josefsson via Guix-patches via
2021-05-06 7:50 ` bug#48242: " Tobias Geerinckx-Rice via Guix-patches via
2021-05-06 10:21 ` [bug#48242] " Simon Josefsson via Guix-patches via
2021-05-06 22:55 ` Tobias Geerinckx-Rice via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).