mirror of
https://github.com/AntelopeIO/boringssl.git
synced 2026-07-21 14:43:53 +00:00
5d2a41d869
While I'm here, align on the version that compares the lengths explicitly, rather than subtract. The subtraction trick does actually work, because the lengths can't be negative and we're two's complement (so 0 - INT_MAX fits in int). But just comparing avoids needing to think about it. Change-Id: Ide6e3539a27e187bb1a405600c367bb8dd82197e Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/62545 Reviewed-by: Bob Beck <bbe@google.com> Commit-Queue: David Benjamin <davidben@google.com> Auto-Submit: David Benjamin <davidben@google.com>
The files nid.h, obj_mac.num, and obj_dat.h are generated from objects.txt and
obj_mac.num. To regenerate them, run:
go run objects.go
objects.txt contains the list of all built-in OIDs. It is processed by
objects.go to output obj_mac.num, obj_dat.h, and nid.h.
obj_mac.num is the list of NID values for each OID. This is an input/output
file so NID values are stable across regenerations.
nid.h is the header which defines macros for all the built-in OIDs in C.
obj_dat.h contains the ASN1_OBJECTs corresponding to built-in OIDs themselves
along with lookup tables for search by short name, OID, etc.