diff mbox

updated: gnu: add asn1c

Message ID 1472742972-8098-1-git-send-email-h.goebel@crazy-compilers.com
State New
Headers show

Commit Message

Hartmut Goebel Sept. 1, 2016, 3:16 p.m. UTC
* gnu/packages/tsl.scm (asn1c): New variable.
---
 gnu/packages/tls.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

Danny Milosavljevic Sept. 1, 2016, 6:55 p.m. UTC | #1
* gnu/packages/tsl.scm (asn1c): New variable.
                ^^ typo

Otherwise LGTM! Someone can probably fix that up when pushing.
Leo Famulari Sept. 6, 2016, 9:40 p.m. UTC | #2
On Thu, Sep 01, 2016 at 05:16:12PM +0200, Hartmut Goebel wrote:
> * gnu/packages/tsl.scm (asn1c): New variable.

Thanks! Pushed after changing the commit message with s/tsl/tls
diff mbox

Patch

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 4b87150..213385d 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -7,6 +7,7 @@ 
 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -68,6 +69,33 @@  networking, allowing for formal validation of data according to some
 specifications.")
     (license license:lgpl2.0+)))
 
+(define-public asn1c
+  (package
+    (name "asn1c")
+    (version "0.9.27")
+    (source (origin
+      (method url-fetch)
+      (uri (string-append "https://lionet.info/soft/asn1c-"
+                          version ".tar.gz"))
+      (sha256
+       (base32
+        "17nvn2kzvlryasr9dzqg6gs27b9lvqpval0k31pb64bjqbhn8pq2"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("perl" ,perl)))
+    (home-page "https://lionet.info/asn1c")
+    (synopsis "ASN.1 to C compiler")
+    (description "The ASN.1 to C compiler takes ASN.1 module
+files and generates C++ compatible C source code.  That code can be
+used to serialize the native C structures into compact and unambiguous
+BER/XER/PER-based data files, and deserialize the files back.
+
+Various ASN.1 based formats are widely used in the industry, such as to encode
+the X.509 certificates employed in the HTTPS handshake, to exchange control
+data between mobile phones and cellular networks, to car-to-car communication
+in intelligent transportation networks.")
+    (license license:bsd-2)))
+
 (define-public p11-kit
   (package
     (name "p11-kit")