From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qOM1OYU/CmHjkwAAgWs5BA (envelope-from ) for ; Wed, 04 Aug 2021 09:19:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SHG8NIU/CmFlGAAAbx9fmQ (envelope-from ) for ; Wed, 04 Aug 2021 07:19:33 +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 6956F2F56A for ; Wed, 4 Aug 2021 09:19:33 +0200 (CEST) Received: from localhost ([::1]:59502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBBBc-0006ha-BY for larch@yhetil.org; Wed, 04 Aug 2021 03:19:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBBAC-0004Yx-Ax for guix-patches@gnu.org; Wed, 04 Aug 2021 03:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBBAC-0005rx-1h for guix-patches@gnu.org; Wed, 04 Aug 2021 03:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBBAB-0002sf-Tg for guix-patches@gnu.org; Wed, 04 Aug 2021 03:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH 23/29] gnu: Add ocaml-x509. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Aug 2021 07:18:03 +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.162806144110971 (code B ref 49867); Wed, 04 Aug 2021 07:18:03 +0000 Received: (at 49867) by debbugs.gnu.org; 4 Aug 2021 07:17:21 +0000 Received: from localhost ([127.0.0.1]:42468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9V-0002qm-7n for submit@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:21 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9I-0002k6-Np for 49867@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:09 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7AB65240026 for <49867@debbugs.gnu.org>; Wed, 4 Aug 2021 09:17:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628061420; bh=OvR2h/YPNVIMY4nimGpIZUP506RI46qDCjhK8ilPRW8=; h=From:To:Cc:Subject:Date:From; b=MXwPi3UXV4ITJKynkElF4YcLV6c9eegLCiSmYQT2bhy12B7RJsBN2B246N9VKJQIg nvQt72LjeB6ILABpMVHJ52d3pG4+nRpB8sshvmpfJj/1wN/fUnA5II/Ntt51BWkYvP 1FUeV5ut21UMZCPkpgAOPUQD/aGYOOl87a0SBNhicBb/va/gUZtnazElFvD9oQJhcF pBC36vMq/1MDRh20kU43J9DWp5n5RHxWxukZCh4NnuYfKXe4Tr0iayb3OKYLekFVPT jny0EiJ5L6pxSnRXcdR7WNV0GvT0prdC9InqmoYwM79BL5N5hrKj9ghXaFE0UXvv5o b7TzfFQDu0y8w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GfjjR6d86z6tmF; Wed, 4 Aug 2021 09:16:59 +0200 (CEST) From: pukkamustard Date: Wed, 4 Aug 2021 07:15:39 +0000 Message-Id: <20210804071545.21181-23-pukkamustard@posteo.net> In-Reply-To: <20210804071545.21181-1-pukkamustard@posteo.net> References: <20210804071545.21181-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=1628061573; 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=1unOHOc9Pw6iNdbjQgwznlVeDvBhOd2cHaJPyFWTlYc=; b=f8WtAyyWfJ7vFCE7HVzjjlh9qHEHhTaN2fnzJyNhKje+MEROdOvqr4YN5tSJ909EEExbGT fHAKd/rWHeoLgKCv94AEoMK8BsEloeVCq+Bkc5PNcrUzUCsyaAh9lRfm/OP9Bwzhd76XHb zRIAK81LoFQ72TuNFZud5Ne5+hVlCkceIoVodcELl0tDA9/YABReNFR3qPpoLhCcdJN6g6 GHY0ReQ7iUDF7SY75vmG80yJ2A1DIIw32q9mUdF8uf5cm+6F9tXwEwGnyxqDDCUd2otEec hGloTU26kuyXjhBmrDM7ZG3sS11TvVMb4DXkajdShieJZ8GevZa4/a1bLc8HPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628061573; a=rsa-sha256; cv=none; b=iZNqKwkRuy7wjNgY04A7Wht8Ejikb/6im/3wSGOc1e9UDzigA1eNbg9+6GjiNvxW6vGfeL pHB+O0nQ3ZKhIjtSra10MiQsz03/zXEbcKZOog9qYpcxMyB29n0YVRNyxJGllDPrPBhojZ 9C82eYjxi5A0osVsIdqT7+YAoFyMGa1sO6HEXLLZHVcaKoZ2kRiW3Vrgw6zvrvOQcsf6b1 lRi/zo0WcOtiOWwvoCr/ENuiTLZvwEcKDFpd3tmcPt5XIFL2b8bWbMfcrVl1YjaQ9Y1kJw KaDrShpiUmwAU+KwCZ8SyE0qQATFjJHFmTOj7QwCsgtnCNLqUQZba6ElCtg6hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=MXwPi3UX; 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.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=MXwPi3UX; 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: 6956F2F56A X-Spam-Score: 3.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2OvVTWBX1CZv * 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 a9a4c8a684..3ce07057f5 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7726,6 +7726,52 @@ to create a type-safe heterogenous maps.") 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