Agent Skills
› google/boringssl
› add-object-nid-oid
add-object-nid-oid
GitHub指导如何在BoringSSL中添加新的ASN.1对象(NID/OID)。包括更新objects.txt定义文件,并从crypto/obj目录运行生成器脚本以重建相关的头文件和查找表。
Trigger Scenarios
需要向BoringSSL添加新的OID或NID
执行BoringSSL代码库中的对象定义更新流程
Install
npx skills add google/boringssl --skill add-object-nid-oid -g -y
SKILL.md
Frontmatter
{
"name": "add-object-nid-oid",
"description": "How to add a new object with a NID and\/or OID to BoringSSL."
}
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
Version History
- 179af5a Current 2026-08-20 19:54


