~ruther/guix-local

3fcbad73a8635162b5f2b7466a69531818c53266 — Sharlatan Hellseher 5 months ago a69fbeb
gnu: Add go-github-com-smallstep-pkcs7.

* gnu/packages/golang-crypto.scm (go-github-com-smallstep-pkcs7): New variable.

Change-Id: I3adadd96ea5fc5c3f9597686568c7f323f0101a8
Reviewed-by: Arthur Rodrigues <arthurhdrodrigues@proton.me>
1 files changed, 50 insertions(+), 1 deletions(-)

M gnu/packages/golang-crypto.scm
M gnu/packages/golang-crypto.scm => gnu/packages/golang-crypto.scm +50 -1
@@ 62,7 62,8 @@
  #:use-module (gnu packages golang-xyz)
  #:use-module (gnu packages password-utils)
  #:use-module (gnu packages security-token)
  #:use-module (gnu packages specifications))
  #:use-module (gnu packages specifications)
  #:use-module (gnu packages tls))

;;; Commentary:
;;;


@@ 2418,6 2419,54 @@ adding the ability to obtain the list of host key algorithms for a known
host.")
    (license license:asl2.0)))

(define-public go-github-com-smallstep-pkcs7
  (package
    (name "go-github-com-smallstep-pkcs7")
    (version "0.2.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/smallstep/pkcs7")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0h8l7aabaxmgzixz4wn0k9f0v4hld86kzis6dpjz2zgf61czk7ri"))))
    (build-system go-build-system)
    (arguments
     (list
      #:import-path "github.com/smallstep/pkcs7"
      #:test-flags
      ;; XXX: Two test fails in validation certificates.
      #~(list "-skip" (string-append
                       ;; sign_test.go:130: test SHA1-RSA/SHA1-RSA/SHA1-RSA:
                       ;; cannot add signer: pkcs7: certificate signature from
                       ;; parent is invalid: x509: cannot verify signature:
                       ;; insecure algorithm SHA1-RSA
                       "TestSign"
                       ;; verify_test.go:825: Verify failed with
                       ;; error: pkcs7: failed to verify
                       ;; certificate chain: x509: certificate
                       ;; signed by unknown authority (possibly
                       ;; because of "x509: cannot verify
                       ;; signature: insecure algorithm
                       ;; SHA1-RSA" while trying to verify
                       ;; candidate authority certificate "PKCS7
                       ;; Test Intermediate Cert")
                       "|TestSignWithOpenSSLAndVerify"))))
    (native-inputs
     (list openssl))
    (propagated-inputs
     (list go-golang-org-x-crypto))
    (home-page "https://github.com/smallstep/pkcs7")
    (synopsis
     "Subset of PKCS #7 / Cryptographic Message Syntax implemented in Golang")
    (description
     "This package implements a subset of PKCS #7 / Cryptographic Message
Syntax (@url{https://www.rfc-editor.org/rfc/rfc2315, RFC 2315},
@url{https://www.rfc-editor.org/rfc/rfc5652, RFC 5652}).")
    (license license:expat)))

(define-public go-github-com-spaolacci-murmur3
  (package
    (name "go-github-com-spaolacci-murmur3")