Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
[new] devel/asn1c
To:
ports@openbsd.org
Cc:
job@openbsd.org
Date:
Thu, 16 Oct 2025 09:59:36 +0200

Download raw body.

Thread
  • Theo Buehler:

    [new] devel/asn1c

This port contains a few useful tools for dealing with the source of
neverending joy that is ASN.1. While the compiler doesn't seem to
understand parameterization, it still helps sanity check some handwritten
ASN.1 modules without resorting to weird websites or pricey proprietary
tools.

I'm unsure if I got the magic incantations for the automess right. At
least it builds and packages... Tests are somewhat broken, however.

===

The ASN.1 to C compiler takes the 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/OER/PER/XER-based data
files, and deserialize the files back.