David Benjamin | 6cc9038 | 2016-04-23 23:28:09 -0400 | [diff] [blame] | 1 | The files nid.h, obj_mac.num, and obj_dat.h are generated from objects.txt and |
| 2 | obj_mac.num. To regenerate them, run: |
David Benjamin | 7baab87 | 2014-12-04 15:48:49 -0500 | [diff] [blame] | 3 | |
David Benjamin | 6cc9038 | 2016-04-23 23:28:09 -0400 | [diff] [blame] | 4 | go run objects.go |
David Benjamin | 7baab87 | 2014-12-04 15:48:49 -0500 | [diff] [blame] | 5 | |
| 6 | objects.txt contains the list of all built-in OIDs. It is processed by |
David Benjamin | 6cc9038 | 2016-04-23 23:28:09 -0400 | [diff] [blame] | 7 | objects.go to output obj_mac.num, obj_dat.h, and nid.h. |
David Benjamin | 7baab87 | 2014-12-04 15:48:49 -0500 | [diff] [blame] | 8 | |
David Benjamin | 6cc9038 | 2016-04-23 23:28:09 -0400 | [diff] [blame] | 9 | obj_mac.num is the list of NID values for each OID. This is an input/output |
| 10 | file so NID values are stable across regenerations. |
David Benjamin | 7baab87 | 2014-12-04 15:48:49 -0500 | [diff] [blame] | 11 | |
David Benjamin | 6cc9038 | 2016-04-23 23:28:09 -0400 | [diff] [blame] | 12 | nid.h is the header which defines macros for all the built-in OIDs in C. |
David Benjamin | 7baab87 | 2014-12-04 15:48:49 -0500 | [diff] [blame] | 13 | |
David Benjamin | 6cc9038 | 2016-04-23 23:28:09 -0400 | [diff] [blame] | 14 | obj_dat.h contains the ASN1_OBJECTs corresponding to built-in OIDs themselves |
| 15 | along with lookup tables for search by short name, OID, etc. |