Automic VaultAutomic Vault

brew

使用 Homebrew, apt, MacPorts, Nix, zypper 安装 asn1c

查看 asn1c 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install asn1c

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install asn1c

MacPorts ports tree · lang/asn1c/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install asn1c

Debian stable package indexes · asn1c · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#asn1c

nixpkgs package indexes · pkgs/by-name/as/asn1c/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install asn1c

openSUSE Tumbleweed package metadata · asn1c · 来源: download.opensuse.org

概览

软件包摘要

Compile ASN.1 specifications into C source code

命令和别名

  • asn1c
  • crfc2asn1.pl
  • enber
  • unber

历史

项目历史与用法

asn1c is Lev Walkin's ASN.1-to-C compiler, packaged as a command-line tool that turns ASN.1 module specifications into C and C++-compatible C code for BER, DER, OER, PER, XER, and related ASN.1 transfer syntaxes. Its upstream README frames it as a practical compiler for protocol implementers rather than a complete implementation of the entire ASN.1 standards family.

项目历史

The project grew around the long-lived lionet.info ASN.1 compiler site and the vlm/asn1c source repository. The upstream documentation emphasizes code generation for native C structures, serializers, and deserializers, while the ChangeLog shows a 0.9 series active through at least the mid-2000s and 2010s with portability fixes, PER work, examples, OER support, and security fixes in generated code and tooling.

asn1c's history is closely tied to real protocol work. Official examples and ChangeLog entries mention X.509, LDAP, 3GPP RRC, MEGACO/H.248.1, GSM TAP3, LTE RRC, IEEE 1609.2, and SAE J2735, which explains why the package persists in Unix package managers despite ASN.1 being a niche compiler domain.

采用历史

The Homebrew input records asn1c in several Unix package ecosystems, including Homebrew, Debian, MacPorts, Nix, Ubuntu, and zypper. That breadth matches the upstream portability work visible in the ChangeLog, including C89/C99, MinGW, macOS, autoreconf, and generated-file permission fixes.

The upstream README describes ASN.1 formats as widely used in HTTPS certificates, mobile-network control data, and intelligent transportation systems. For package users, asn1c tends to appear as a build-time or protocol-development dependency rather than an end-user application.

使用方式

The core usage is `asn1c module.asn1`, with multiple ASN.1 modules passed together when specifications have interdependencies. By default, the compiler emits multiple `.c` and `.h` files for ASN.1 types; `-P` prints generated output, while `-E` and `-EF` expose parser and semantic-fixer stages for debugging a specification.

The generated C support code is used to encode and decode protocol data in BER/DER, OER, PER, and XER families. The bundled helper tools `enber` and `unber` support BER-oriented inspection workflows, and the `crfc2asn1.pl` script extracts ASN.1 modules from RFC text.

为什么软件包爱好者会关心

asn1c is one of those packages that matters because it sits at the boundary between formal telecom/security standards and C build systems. It is a small CLI in the package manager, but it can generate substantial source trees that become part of another project's ABI, memory-safety surface, and wire-format compatibility.

Package maintainers care about asn1c versions because changes in generated code, codec support, and skeleton behavior can affect downstream protocol parsers. The ChangeLog's security notes for generated output make it more than a compiler binary: upgrades can change the safety of code already emitted into dependent projects.

时间线

  • 2005: 0.9.11 through 0.9.19 ChangeLog entries show active compiler, XER, circular-reference, and generated-code fixes.
  • 2006: 0.9.20 starts experimental PER implementation; 0.9.21 adds a first PER encoder and telecom examples.
  • 2008: 0.9.22 expands PER support and adds an OMA ULP decoder example.
  • 2014: 0.9.26 and 0.9.27 focus on documentation, defaults, portability, and debug behavior.
  • 2017: 0.9.28 records portability fixes and verification around a reported CVE.
  • 0.9.29: Adds Information Object Set driven generation, OER support, LTE RRC, IEEE 1609.2, SAE J2735 examples, and LibFuzzer-based tests.

Related projects

  • asn1c is related to ASN.1 specifications and transfer syntax tooling rather than to a single peer package. Its upstream README points readers to ASN.1 standards material and examples involving X.509, mobile networking, and transportation protocols.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
asn1ccli全局可执行文件
crfc2asn1.plcli全局可执行文件
enbercli全局可执行文件
unbercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本0.9.29
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v0.9.29

https://github.com/vlm/asn1c

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:asn1c
版本0.9.29
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/asn1c
主页https://lionet.info/asn1c/blog
仓库https://github.com/vlm/asn1c
上游文档https://github.com/vlm/asn1c#readme
许可证BSD-2-Clause
源码归档https://github.com/vlm/asn1c/archive/refs/tags/v0.9.29.tar.gz
最后更新2026-06-22T11:36:29Z
Pulseupdated
构建依赖autoconf, automake, libtool
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameasn1c
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

asn1c 0.9.28+dfsg-5

ASN.1 compiler for C

https://github.com/vlm/asn1c

sudo apt install asn1c
  • Section: devel
  • Architecture: amd64
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Asn1c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: asn1c from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

asn1c-doc 0.9.28+dfsg-5

Documentation for asn1c

https://github.com/vlm/asn1c

sudo apt install asn1c-doc
  • Section: doc
  • Architecture: all
  • Source Package: asn1c
  • normalized package name match
  • 匹配方式:Asn1c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: asn1c-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

asn1c

nix profile install nixpkgs#asn1c
  • normalized package name match
  • 匹配方式:Asn1c
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/as/asn1c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

asn1c 0.9.28+dfsg-5

ASN.1 compiler for C

https://github.com/vlm/asn1c

sudo apt install asn1c
  • Section: universe/devel
  • Architecture: amd64
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Asn1c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: asn1c from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

asn1c-doc 0.9.28+dfsg-5

Documentation for asn1c

https://github.com/vlm/asn1c

sudo apt install asn1c-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: asn1c
  • normalized package name match
  • 匹配方式:Asn1c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: asn1c-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
zypper95%

asn1c 0.9.28-2.22

ASN.1 Compiler

http://lionet.info/asn1c/

sudo zypper install asn1c
  • License: BSD-2-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: asn1c
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Asn1c
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: asn1c from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

asn1c

sudo port install asn1c
  • normalized package name match
  • 匹配方式:Asn1c
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/asn1c/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment