AGENT SKILL
add-object-nid-oid
How to add a new object with a NID and/or OID to BoringSSL.
- 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
update-pregenerated-files
How to regenerate/update pre-generated files (e.g., perlasm, build files) in BoringSSL.
★ 2.3k
run-ssl-go-tests
How to run BoringSSL's ssl/test/runner suite (protocol-level BoGo tests)
★ 2.3k
build-and-test
How to build BoringSSL and run its tests.
★ 2.3k
add-source-file
How to add a new source file to the BoringSSL build.
★ 2.3k
add-error-code
How to add a new error code in BoringSSL.
★ 2.3k