OpenParable
Skip to content
← Back to skills

Add Object Nid Oid

Development
add-object-nid-oid

Add Object Nid Oid is an Agent Skill for development published in the google/boringssl repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

How to add a new object with a NID and/or OID to BoringSSL.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/google/boringssl/blob/HEAD/agents/skills/add_object_nid_oid/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/add-object-nid-oid, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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:

  2. 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:
      cd crypto/obj && go run objects.go
      
    • This will update obj_mac.num (to stabilize NIDs), obj_dat.h, and include/openssl/nid.h.