macOS
brew install asn1clocal Homebrew formula metadata
sudo port install asn1cMacPorts ports tree · lang/asn1c/Portfile · ソース: api.github.com
brew
asn1c のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install asn1clocal Homebrew formula metadata
sudo port install asn1cMacPorts ports tree · lang/asn1c/Portfile · ソース: api.github.com
sudo apt install asn1cDebian stable package indexes · asn1c · ソース: deb.debian.org
nix profile install nixpkgs#asn1cnixpkgs package indexes · pkgs/by-name/as/asn1c/package.nix · ソース: api.github.com
sudo zypper install asn1copenSUSE Tumbleweed package metadata · asn1c · ソース: download.opensuse.org
概要
Compile ASN.1 specifications into C source code
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
asn1c | cli | グローバル実行可能ファイル | |
crfc2asn1.pl | cli | グローバル実行可能ファイル | |
enber | cli | グローバル実行可能ファイル | |
unber | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | 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 |
| Pulse | updated |
| ビルド依存関係 | autoconf, automake, libtool |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | asn1c |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
asn1c 0.9.28+dfsg-5
ASN.1 compiler for C
sudo apt install asn1casn1c-doc 0.9.28+dfsg-5
Documentation for asn1c
sudo apt install asn1c-docasn1c
nix profile install nixpkgs#asn1casn1c 0.9.28+dfsg-5
ASN.1 compiler for C
sudo apt install asn1casn1c-doc 0.9.28+dfsg-5
Documentation for asn1c
sudo apt install asn1c-docasn1c 0.9.28-2.22
ASN.1 Compiler
sudo zypper install asn1casn1c
sudo port install asn1cソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.