blob: 8826e5981ca54aa0f06d859e106b1a86e94b41e7 [file] [log] [blame]
OID information is generated via a series of perl scripts. In order, the full
list of commands to run are:
perl objects.txt obj_mac.num ../../include/openssl/obj_mac.h
perl ../../include/openssl/obj_mac.h obj_dat.h
perl obj_mac.num obj_xref.txt > obj_xref.h
objects.txt contains the list of all built-in OIDs. It is processed by to output obj_mac.num and obj_mac.h. obj_mac.num is the list of NID
values for each OID. This is an input/output parameter so NID values are stable
across regenerations. obj_mac.h is the header which defines macros for all the
built-in OIDs in C.
obj_mac.h is read by to generate obj_dat.h. obj_dat.h contains the
ASN1_OBJECTs corresponding to built-in OIDs themselves along with lookup tables
for search by short name, OID, etc.
obj_mac.num and obj_xref.txt are read by to generate
obj_xref.h. obj_xref.txt links signature OIDs to corresponding public key
algorithms and digests. obj_xref.h contains lookup tables for querying this
information in both directions.
Dependency graph:
[] <--+
/ \ |
V V |
obj_mac.h obj_mac.num obj_xref.txt
| \ /
[] []
| |
obj_dat.h obj_xref.h