From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IPKFCFXTEGFuPgAAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 09:03:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YG87BFXTEGEMZAAA1q6Kng (envelope-from ) for ; Mon, 09 Aug 2021 07:03:49 +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 CDB221D093 for ; Mon, 9 Aug 2021 09:03:48 +0200 (CEST) Received: from localhost ([::1]:46470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCzK7-000790-TP for larch@yhetil.org; Mon, 09 Aug 2021 03:03:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCzJR-0005xM-Kw for guix-patches@gnu.org; Mon, 09 Aug 2021 03:03:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCzJR-0000yW-Bl for guix-patches@gnu.org; Mon, 09 Aug 2021 03:03:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCzJQ-0003hp-MM for guix-patches@gnu.org; Mon, 09 Aug 2021 03:03:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH v2 26/31] gnu: Add ocaml-x509. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Aug 2021 07:03:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49867 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49867@debbugs.gnu.org Cc: pukkamustard Received: via spool by 49867-submit@debbugs.gnu.org id=B49867.162849254214104 (code B ref 49867); Mon, 09 Aug 2021 07:03:04 +0000 Received: (at 49867) by debbugs.gnu.org; 9 Aug 2021 07:02:22 +0000 Received: from localhost ([127.0.0.1]:55540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzIj-0003fK-QA for submit@debbugs.gnu.org; Mon, 09 Aug 2021 03:02:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:33149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzIN-0003ZL-Nn for 49867@debbugs.gnu.org; Mon, 09 Aug 2021 03:02:00 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 29A0B240029 for <49867@debbugs.gnu.org>; Mon, 9 Aug 2021 09:01:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628492514; bh=ZEqyw5/wRrCDhJHsN8ROlJ47QSWUh9/xmaVoNa5kqRQ=; h=From:To:Cc:Subject:Date:From; b=qXzU3R3Seu7Sol9qart00lodjYHcxf/pHDpd548VAMwpzt/lysZ5CR/A6HXFH2HSu dPVecl+TLDKnxvHOyquqbORbJKbLLZr5GsgAR7VRCTjPQqao7bZpiUek6DqcMu7MXv fGrIQWJFk/uy7PeCwCh2/DO5gDsSjwP6wiTETLZ7SG2Y41veEbFcM3NJOyp7ZqSfQ6 bxbSyv0rD06iLcJCaTTSEkP4bSzwtFqfFnUqhENmoD5VxZ+8mImWuyKd65cjImLAnf kRbJ7zXtNNDaj8MX2c6NQhHoLDjdqHSmYhacC1qtMFUN24DTdPaSU+kHWt4665bqZy gWGn5NgnoxUKg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gjn7j4FGvz6tmG; Mon, 9 Aug 2021 09:01:53 +0200 (CEST) From: pukkamustard Date: Mon, 9 Aug 2021 07:01:19 +0000 Message-Id: <20210809070124.25641-26-pukkamustard@posteo.net> In-Reply-To: <20210809070124.25641-1-pukkamustard@posteo.net> References: <86pmun5cp5.fsf@posteo.net> <20210809070124.25641-1-pukkamustard@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628492628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7okZKc3rKQqabQGetzONrxSEyfHCW2LRBnoT+sY5KjI=; b=jofK8ipBWBWzUZZlGbZEjbDFZpAEgVARV8C2C5Ke7cWvwu8qennilzWYsv/MzeLqfXs+iY X6hSUAK1c8/n6o9IwIvSClZQOUck7VCxNsKbzpu6UuARRnI9WwUUyiHlog/5ldK9rHcx7r 4oSVHOeAf3wXBYoYF5ZVoTpMBw8IM1eXdpvcyEzK4togEDj+5G8hjP1eIF2oYG1tfuPVCA ztXY1URWegTmUqaR0OIP+PN3LeQJWKVNouHy7ggh1FSGMwHQKiVWG1wrnhUHPME3Q7RYVe DCQSXtUO/+w+i4e0CJMWzevKiIloH4w5qmfNzUwdds3sBouwzUP2lswbhG8jUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628492628; a=rsa-sha256; cv=none; b=NaFozgw6SfvLohs+MbH7OVvUcGlni3EdbPHmvRrHn1iSD1z7Asz9vozz3Bc2MkBQTRBJVE oIkaXBi0JzLKjBydLbYPLx67+xrrJaG/rOE2o/gzaPhlYZT1AOKj6jQIp+vduyTnfxNNSl RhBs3RsaSB4YCgotACfufvNsvjgRn80cA5vi3SLwa6A5BzsHIqdnXoWf8tN/CEK5QqSdAU KW7QwbqT+IWaZB4Sk+Qv1LhUp1VbbLSiteJNAJYTQW6awFpV+hZRD0AD7BAFKFLW4ep/Kg x2WiHNCgbavnYnU4IudX8v4mBdw5CzoSHYKhFoEzwwIcPo/WmG0wZr9Xsd2ebg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=qXzU3R3S; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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: 3.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=qXzU3R3S; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); 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: CDB221D093 X-Spam-Score: 3.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: bNQ9MJP/Om5L * gnu/packages/ocaml.scm (ocaml-x509): New variable. --- gnu/packages/ocaml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index e358042e41..b7bdc8c711 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7956,6 +7956,52 @@ to create a type-safe heterogenous maps.") 2 as defined by PKCS#5 using @code{ocaml-mirage-crypto}.") (license license:bsd-2))) +(define-public ocaml-x509 + (package + (name "ocaml-x509") + (version "0.14.0") + (home-page "https://github.com/mirleft/ocaml-x509") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b51vzyxxkhwgx12dg55clb1lb971cxlmsk4wlxzs5h115j5hcy7")))) + (build-system dune-build-system) + (arguments `(#:test-target ".")) + (propagated-inputs + `(("ocaml-cstruct" ,ocaml-cstruct) + ("ocaml-asn1-combinators" ,ocaml-asn1-combinators) + ("ocaml-ptime" ,ocaml-ptime) + ("ocaml-base64" ,ocaml-base64) + ("ocaml-mirage-crypto" ,ocaml-mirage-crypto) + ("ocaml-mirage-crypto-pk" ,ocaml-mirage-crypto-pk) + ("ocaml-mirage-crypto-ec" ,ocaml-mirage-crypto-ec) + ("ocaml-mirage-crypto-rng" ,ocaml-mirage-crypto-rng) + ("ocaml-rresult" ,ocaml-rresult) + ("ocaml-fmt" ,ocaml-fmt) + ("ocaml-gmap" ,ocaml-gmap) + ("ocaml-domain-name" ,ocaml-domain-name) + ("ocaml-logs" ,ocaml-logs) + ("ocaml-pbkdf" ,ocaml-pbkdf))) + (native-inputs + `(("ocaml-alcotest" ,ocaml-alcotest) + ("ocaml-cstruct-unix" ,ocaml-cstruct-unix))) + (synopsis "Public Key Infrastructure (RFC 5280, PKCS) purely in OCaml") +(description "X.509 is a public key infrastructure used mostly on the +Internet. It consists of certificates which include public keys and +identifiers, signed by an authority. Authorities must be exchanged over a +second channel to establish the trust relationship. This OCaml library +implements most parts of RFC5280 and RFC6125. The Public Key Cryptography +Standards (PKCS) defines encoding and decoding (in ASN.1 DER and PEM format), +which is also implemented by this library --- namely PKCS 1, PKCS 5, PKCS 7, +PKCS 8, PKCS 9, PKCS 10, and PKCS 12.") + (license license:bsd-2))) + (define-public js-of-ocaml (package (name "js-of-ocaml") -- 2.32.0