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.
Update objects.txt:
objects.txt Format Reference”).Regenerate Files:
crypto/obj directory because it relies on relative paths for its inputs and outputs.cd crypto/obj && go run objects.go
obj_mac.num (to stabilize NIDs), obj_dat.h, and include/openssl/nid.h.