AGENT SKILL
BoringSSL 添加 NID/OID 对象
add-object-nid-oid
介绍如何向 BoringSSL 添加具有 NID 和/或 OID 的新对象。
- License 许可
- Apache-2.0
- 所属仓库
- google/boringssl
- 最近更新
- 2026-11-14
- Stars
- ★ 2.3k
- Forks
- 924
01 前言 Front Matter
- name
- add-object-nid-oid
- description
- How to add a new object with a NID and/or OID to BoringSSL.
03 SKILL.md 正文
Adding a New NID or OID
To add a new ASN.1 object (with a NID and/or OID) to BoringSSL, you must add it to the objects definition file and regenerate the generated headers and lookup tables.
Refer to crypto/obj/README.md for an overview of the generated files.
Steps
-
Update
objects.txt:- Add the new object to crypto/obj/objects.txt.
- Follow the format described in crypto/obj/README.md (in the section titled "
objects.txtFormat Reference").
-
Regenerate Files:
- The generator script crypto/obj/objects.go must be run from the
crypto/objdirectory because it relies on relative paths for its inputs and outputs. - Run the following command:
cd crypto/obj && go run objects.go - This will update
obj_mac.num(to stabilize NIDs),obj_dat.h, andinclude/openssl/nid.h.
- The generator script crypto/obj/objects.go must be run from the
04 同仓库更多 Skills
BoringSSL 预生成文件更新
update-pregenerated-files
介绍如何在 BoringSSL 中重新生成/更新预生成文件(例如 perlasm、构建文件)。
★ 2.3k
BoringSSL BoGo 测试运行
run-ssl-go-tests
介绍如何运行 BoringSSL 的 ssl/test/runner 测试套件(协议级 BoGo 测试)。
★ 2.3k
BoringSSL 构建与测试
build-and-test
介绍如何构建 BoringSSL 并运行其测试。
★ 2.3k
BoringSSL 添加源文件
add-source-file
介绍如何向 BoringSSL 构建添加新的源文件。
★ 2.3k
BoringSSL 错误码添加
add-error-code
如何在 BoringSSL 中添加新的错误码。
★ 2.3k