<< All versions

Skill v1.0.0

currentTrusted Publisher100/100
google/boringssl/add-object-nid-oid
──Details
PublishedOctober 1, 2026 at 05:31 PM
Content Hashsha256:4755c71a75da3000...
Git SHA
──Files
Files (1 file, 1.1 KB)
SKILL.md1.1 KBactive
SKILL.md · 26 lines · 1.1 KB

version: "1.0.0" 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

  1. Update `objects.txt`:
  1. Regenerate Files:
  • The generator script crypto/obj/objects.go must be run from the `crypto/obj` directory because it relies on relative paths for its inputs and outputs.
  • Run the following command:

``bash cd crypto/obj && go run objects.go ``

  • This will update obj_mac.num (to stabilize NIDs), obj_dat.h, and include/openssl/nid.h.
All versions