blob: 797bb68da49105dc63a441a43ccb389d32f4d9fe [file] [log] [blame]
David Benjamin6cc90382016-04-23 23:28:09 -04001The files nid.h, obj_mac.num, and obj_dat.h are generated from objects.txt and
2obj_mac.num. To regenerate them, run:
David Benjamin7baab872014-12-04 15:48:49 -05003
David Benjamin6cc90382016-04-23 23:28:09 -04004 go run objects.go
David Benjamin7baab872014-12-04 15:48:49 -05005
6objects.txt contains the list of all built-in OIDs. It is processed by
David Benjamin6cc90382016-04-23 23:28:09 -04007objects.go to output obj_mac.num, obj_dat.h, and nid.h.
David Benjamin7baab872014-12-04 15:48:49 -05008
David Benjamin6cc90382016-04-23 23:28:09 -04009obj_mac.num is the list of NID values for each OID. This is an input/output
10file so NID values are stable across regenerations.
David Benjamin7baab872014-12-04 15:48:49 -050011
David Benjamin6cc90382016-04-23 23:28:09 -040012nid.h is the header which defines macros for all the built-in OIDs in C.
David Benjamin7baab872014-12-04 15:48:49 -050013
David Benjamin6cc90382016-04-23 23:28:09 -040014obj_dat.h contains the ASN1_OBJECTs corresponding to built-in OIDs themselves
15along with lookup tables for search by short name, OID, etc.