2016-04-24 04:28:09 +01:00
|
|
|
The files nid.h, obj_mac.num, and obj_dat.h are generated from objects.txt and
|
|
|
|
obj_mac.num. To regenerate them, run:
|
2014-12-04 20:48:49 +00:00
|
|
|
|
2016-04-24 04:28:09 +01:00
|
|
|
go run objects.go
|
2014-12-04 20:48:49 +00:00
|
|
|
|
|
|
|
objects.txt contains the list of all built-in OIDs. It is processed by
|
2016-04-24 04:28:09 +01:00
|
|
|
objects.go to output obj_mac.num, obj_dat.h, and nid.h.
|
2014-12-04 20:48:49 +00:00
|
|
|
|
2016-04-24 04:28:09 +01:00
|
|
|
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.
|
2014-12-04 20:48:49 +00:00
|
|
|
|
2016-04-24 04:28:09 +01:00
|
|
|
nid.h is the header which defines macros for all the built-in OIDs in C.
|
2014-12-04 20:48:49 +00:00
|
|
|
|
2016-04-24 04:28:09 +01:00
|
|
|
obj_dat.h contains the ASN1_OBJECTs corresponding to built-in OIDs themselves
|
|
|
|
along with lookup tables for search by short name, OID, etc.
|