summaryrefslogtreecommitdiff
path: root/gnu/packages/security-token.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-12-13 16:29:21 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-12-13 16:29:21 -0500
commit6dffced09ecda024e0884e352778c221ad066fd6 (patch)
tree1707e8d8df4d9c47317a39ab6abbfc2ca66a6c29 /gnu/packages/security-token.scm
parentb603554ed044638dd40b6863d5dada59eefe03b8 (diff)
parente3196755e60ba7f1ed9d432e73f26a85e0c8893c (diff)
Merge branch 'core-updates-frozen' into 'master'.
At last!
Diffstat (limited to 'gnu/packages/security-token.scm')
-rw-r--r--gnu/packages/security-token.scm202
1 files changed, 87 insertions, 115 deletions
diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index d5ce6e100d..25b64e907b 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2014, 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016, 2021 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Mike Gerwitz <mtg@gnu.org>
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
@@ -10,6 +10,7 @@
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020 Raphaël Mélotte <raphael.melotte@mind.be>
;;; Copyright © 2021 Antero Mejr <antero@kodmin.com>
+;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2021 Sergey Trofimov <sarg@sarg.org.ru>
;;; Copyright © 2021 Dhruvin Gandhi <contact@dhruvin.dev>
;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io>
@@ -97,11 +98,9 @@
(("/bin/echo") (which "echo")))
#t)))))
(native-inputs
- `(("perl" ,perl)
- ("pkg-config" ,pkg-config)))
+ (list perl pkg-config))
(inputs
- `(("libusb" ,libusb)
- ("pcsc-lite" ,pcsc-lite)))
+ (list libusb pcsc-lite))
(home-page "https://ccid.apdu.fr/")
(synopsis "PC/SC driver for USB smart card devices")
(description
@@ -136,15 +135,15 @@ readers and is needed to communicate with such devices through the
("pkg-config" ,pkg-config)
("perl" ,perl)))
(inputs
- `(("curl" ,curl)
- ("libbsd" ,libbsd)
- ("openssl" ,openssl)
- ("gtk+" ,gtk+)
- ("pcsc-lite" ,pcsc-lite)
- ("p11-kit" ,p11-kit)
- ("libproxy" ,libproxy)
- ("libxml2" ,libxml2)
- ("cyrus-sasl" ,cyrus-sasl)))
+ (list curl
+ libbsd
+ openssl
+ gtk+
+ pcsc-lite
+ p11-kit
+ libproxy
+ libxml2
+ cyrus-sasl))
(arguments
`(#:configure-flags
(list "--disable-static"
@@ -208,10 +207,9 @@ the low-level development kit for the Yubico YubiKey authentication device.")
'(#:configure-flags '("--disable-gost"))) ; TODO Missing the OpenSSL
; engine for GOST
(inputs
- `(("openssl" ,openssl)))
+ (list openssl))
(native-inputs
- `(("pkg-config" ,pkg-config)
- ("cppunit" ,cppunit)))
+ (list pkg-config cppunit))
(synopsis "Software implementation of a generic cryptographic device")
(description
"SoftHSM 2 is a software implementation of a generic cryptographic device
@@ -222,21 +220,21 @@ with a PKCS #11 Cryptographic Token Interface.")
(define-public pcsc-lite
(package
(name "pcsc-lite")
- (version "1.9.0")
+ (version "1.9.3")
(source (origin
(method url-fetch)
(uri (string-append "https://pcsclite.apdu.fr/files/"
"pcsc-lite-" version ".tar.bz2"))
(sha256
(base32
- "1y9f9zipnrmgiw0mxrvcgky8vfrcmg6zh40gbln5a93i2c1x8j01"))))
+ "0n9y9m1wr5bwanpnylpdza3sf7lawi63jjizrl1aj5yxf4y46mk9"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags '("--enable-usbdropdir=/var/lib/pcsc/drivers"
"--disable-libsystemd")))
(native-inputs
- `(("perl" ,perl) ; for pod2man
- ("pkg-config" ,pkg-config)))
+ (list perl ; for pod2man
+ pkg-config))
(inputs
`(("libudev" ,eudev)))
(home-page "https://pcsclite.apdu.fr/")
@@ -267,9 +265,8 @@ from a client application and provide access to the desired reader.")
;; yubico.com, so skip it.
(arguments '(#:tests? #f))
- (native-inputs `(("pkg-config" ,pkg-config)
- ("help2man" ,help2man)))
- (inputs `(("curl" ,curl)))
+ (native-inputs (list pkg-config help2man))
+ (inputs (list curl))
(synopsis "C library to validate one-time-password YubiKeys")
(description
"YubiKey C Client Library (libykclient) is a C library used to validate a
@@ -300,22 +297,17 @@ website for more information about Yubico and the YubiKey.")
;; configuration file at runtime.
(add-after 'unpack 'set-default-libpcsclite.so.1-path
(lambda* (#:key inputs #:allow-other-keys)
- (let ((libpcsclite (string-append (assoc-ref inputs "pcsc-lite")
- "/lib/libpcsclite.so.1")))
+ (let ((libpcsclite (search-input-file inputs
+ "/lib/libpcsclite.so.1")))
(substitute* "configure"
(("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"")
(string-append
"DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\"")))
#t))))))
(inputs
- `(("readline" ,readline)
- ("openssl" ,openssl)
- ("pcsc-lite" ,pcsc-lite)
- ("ccid" ,ccid)))
+ (list readline openssl pcsc-lite ccid))
(native-inputs
- `(("libxslt" ,libxslt)
- ("docbook-xsl" ,docbook-xsl)
- ("pkg-config" ,pkg-config)))
+ (list libxslt docbook-xsl pkg-config))
(home-page "https://github.com/OpenSC/OpenSC/wiki")
(synopsis "Tools and libraries related to smart cards")
(description
@@ -340,17 +332,14 @@ authentication, encryption and digital signatures. OpenSC implements the PKCS
"10xgdc51xvszkxmsvqnbjs8ixxz7rfnfahh3wn8glllynmszbhwi"))))
(build-system gnu-build-system)
(inputs
- `(("gengetopt" ,gengetopt)
- ("perl" ,perl)
- ("pcsc-lite" ,pcsc-lite)
- ("openssl" ,openssl)))
+ (list gengetopt perl pcsc-lite openssl))
(native-inputs
- `(("doxygen" ,doxygen)
- ("graphviz" ,graphviz)
- ("help2man" ,help2man)
- ("check" ,check)
- ("texlive-bin" ,texlive-bin)
- ("pkg-config" ,pkg-config)))
+ (list doxygen
+ graphviz
+ help2man
+ check
+ texlive-bin
+ pkg-config))
(home-page "https://developers.yubico.com/yubico-piv-tool/")
(synopsis "Interact with the PIV application on a YubiKey")
(description
@@ -388,13 +377,11 @@ and other operations. It includes a library and a command-line tool.")
(assoc-ref %outputs "out")
"/lib/udev/rules.d"))))
(inputs
- `(("json-c" ,json-c-0.13)
- ("libusb" ,libusb)
- ;; The library "libyubikey" is also known as "yubico-c".
- ("libyubikey" ,libyubikey)))
+ (list json-c-0.13 libusb
+ ;; The library "libyubikey" is also known as "yubico-c".
+ libyubikey))
(native-inputs
- `(("pkg-config" ,pkg-config)
- ("eudev" ,eudev)))
+ (list pkg-config eudev))
(home-page "https://developers.yubico.com/yubikey-personalization/")
(synopsis "Library and tools to personalize YubiKeys")
(description
@@ -439,13 +426,13 @@ retrieve a YubiKey's serial number, and so forth.")
(("lib = \"libpcsclite\\.so\\.1\";")
(simple-format #f
"lib = \"~a\";"
- (string-append (assoc-ref inputs "pcsc-lite")
- "/lib/libpcsclite.so.1"))))
+ (search-input-file inputs
+ "/lib/libpcsclite.so.1"))))
#t)))))
(inputs
- `(("pcsc-lite" ,pcsc-lite)))
+ (list pcsc-lite))
(native-inputs
- `(("swig" ,swig)))
+ (list swig))
(home-page "https://github.com/LudovicRousseau/pyscard")
(synopsis "Smart card library for Python")
(description
@@ -488,15 +475,14 @@ PCSC API Python wrapper module.")
"/xml/dtd/docbook/docbookx.dtd")))
#t)))))
(inputs
- `(("json-c" ,json-c-0.13)
- ("hidapi" ,hidapi)))
+ (list json-c-0.13 hidapi))
(native-inputs
- `(("help2man" ,help2man)
- ("gengetopt" ,gengetopt)
- ("pkg-config" ,pkg-config)
- ("gtk-doc" ,gtk-doc)
- ("docbook-xml" ,docbook-xml-4.3)
- ("eudev" ,eudev)))
+ (list help2man
+ gengetopt
+ pkg-config
+ gtk-doc
+ docbook-xml-4.3
+ eudev))
(home-page "https://developers.yubico.com/libu2f-host/")
;; TRANSLATORS: The U2F protocol has a "server side" and a "host side".
(synopsis "U2F host-side C library and tool")
@@ -528,18 +514,17 @@ operations.")
(list "--enable-gtk-doc"
"--enable-tests")))
(inputs
- `(("json-c" ,json-c-0.13)
- ("libressl" ,libressl)))
+ (list json-c-0.13 libressl))
(native-inputs
- `(("autoconf" ,autoconf)
- ("automake" ,automake)
- ("libtool" ,libtool)
- ("check" ,check)
- ("gengetopt" ,gengetopt)
- ("help2man" ,help2man)
- ("pkg-config" ,pkg-config)
- ("gtk-doc" ,gtk-doc)
- ("which" ,which)))
+ (list autoconf
+ automake
+ libtool
+ check
+ gengetopt
+ help2man
+ pkg-config
+ gtk-doc
+ which))
(home-page "https://developers.yubico.com/libu2f-server/")
;; TRANSLATORS: The U2F protocol has a "server side" and a "host side".
(synopsis "U2F server-side C library")
@@ -571,15 +556,9 @@ verifying the cryptographic operations.")
(list (string-append "--with-pam-dir="
(assoc-ref %outputs "out") "/lib/security"))))
(inputs
- `(("libu2f-host" ,libu2f-host)
- ("libu2f-server" ,libu2f-server)
- ("linux-pam" ,linux-pam)))
+ (list libu2f-host libu2f-server linux-pam))
(native-inputs
- `(("autoconf" ,autoconf)
- ("automake" ,automake)
- ("libtool" ,libtool)
- ("asciidoc" ,asciidoc)
- ("pkg-config" ,pkg-config)))
+ (list autoconf automake libtool asciidoc pkg-config))
(home-page "https://developers.yubico.com/pam-u2f/")
(synopsis "PAM module for U2F authentication")
(description
@@ -611,19 +590,17 @@ your existing infrastructure.")
(add-after 'unpack 'install-public-suffix-list
(lambda* (#:key inputs #:allow-other-keys)
(copy-file
- (string-append (assoc-ref inputs "public-suffix-list")
- "/share/public-suffix-list-"
- ,(package-version public-suffix-list)
- "/public_suffix_list.dat")
+ (search-input-file inputs
+ (string-append
+ "/share/public-suffix-list-"
+ ,(package-version public-suffix-list)
+ "/public_suffix_list.dat"))
"fido2/public_suffix_list.dat")
#t)))))
(propagated-inputs
- `(("python-cryptography" ,python-cryptography)
- ("python-six" ,python-six)))
+ (list python-cryptography python-six))
(native-inputs
- `(("python-mock" ,python-mock)
- ("python-pyfakefs" ,python-pyfakefs)
- ("public-suffix-list" ,public-suffix-list)))
+ (list python-mock python-pyfakefs public-suffix-list))
(home-page "https://github.com/Yubico/python-fido2")
(synopsis "Python library for communicating with FIDO devices over USB")
(description
@@ -673,20 +650,17 @@ implementing a Relying Party.")
"')")))
#t)))))
(propagated-inputs
- `(("python-six" ,python-six)
- ("python-pyscard" ,python-pyscard)
- ("python-pyusb" ,python-pyusb)
- ("python-click" ,python-click)
- ("python-cryptography" ,python-cryptography)
- ("python-pyopenssl" ,python-pyopenssl)
- ("python-fido2" ,python-fido2)))
+ (list python-six
+ python-pyscard
+ python-pyusb
+ python-click
+ python-cryptography
+ python-pyopenssl
+ python-fido2))
(inputs
- `(("yubikey-personalization" ,yubikey-personalization)
- ("pcsc-lite" ,pcsc-lite)
- ("libusb" ,libusb)))
+ (list yubikey-personalization pcsc-lite libusb))
(native-inputs
- `(("swig" ,swig)
- ("python-mock" ,python-mock)))
+ (list swig python-mock))
(home-page "https://developers.yubico.com/yubikey-manager/")
(synopsis "Command line tool and library for configuring a YubiKey")
(description
@@ -729,8 +703,7 @@ an unprivileged user.")
("rust-regex" ,rust-regex-1)
("rust-tempfile" ,rust-tempfile-3))))
(inputs
- `(("hidapi" ,hidapi)
- ("gnupg" ,gnupg)))
+ (list hidapi gnupg))
(home-page "https://github.com/d-e-s-o/nitrocli")
(synopsis "Command line tool for Nitrokey devices")
(description
@@ -753,17 +726,16 @@ devices.")
(build-system cmake-build-system)
(native-inputs
- `(("pkg-config" ,pkg-config)
- ("qttools" ,qttools)))
+ (list pkg-config qttools))
(inputs
- `(("qtbase" ,qtbase-5)
- ("qtsvg" ,qtsvg)
- ("qtdeclarative" ,qtdeclarative)
- ("qtwebsockets" ,qtwebsockets)
- ("qtgraphicaleffects" ,qtgraphicaleffects)
- ("qtquickcontrols2" ,qtquickcontrols2)
- ("pcsc-lite" ,pcsc-lite)
- ("openssl" ,openssl)))
+ (list qtbase-5
+ qtsvg
+ qtdeclarative
+ qtwebsockets
+ qtgraphicaleffects
+ qtquickcontrols2
+ pcsc-lite
+ openssl))
(arguments
`(#:modules ((guix build cmake-build-system)
(guix build qt-utils)
@@ -798,7 +770,7 @@ phone is required.")
(commit version)))
(file-name (git-file-name name version))
(sha256 (base32 "12zy4cnlcffcb64lsx8198y09j1dwi0bcn9rr82q6i1k950yzd3p"))))
- (native-inputs `(("pkg-config" ,pkg-config)))
+ (native-inputs (list pkg-config))
(inputs
`(("zlib" ,zlib)
("udev" ,eudev)