Rev 1064 | Rev 1130 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1064 | Rev 1116 | ||
---|---|---|---|
Line 104... | Line 104... | ||
104 | function make_line($command, $data) { |
104 | function make_line($command, $data) { |
105 | return $command.$data."\r\n"; |
105 | return $command.$data."\r\n"; |
106 | } |
106 | } |
107 | 107 | ||
108 | // https://github.com/danielmarschall/oidplus_dos/blob/master/OIDFILE.PAS |
108 | // https://github.com/danielmarschall/oidplus_dos/blob/master/OIDFILE.PAS |
109 | define('CMD_VERSION', 'VERS'); |
109 | const CMD_VERSION = 'VERS'; |
110 | define('CMD_OWN_ID', 'SELF'); |
110 | const CMD_OWN_ID = 'SELF'; |
111 | define('CMD_PARENT', 'SUPR'); |
111 | const CMD_PARENT = 'SUPR'; |
112 | define('CMD_CHILD', 'CHLD'); |
112 | const CMD_CHILD = 'CHLD'; |
113 | define('CMD_ASN1_IDENTIFIER', 'ASN1'); |
113 | const CMD_ASN1_IDENTIFIER = 'ASN1'; |
114 | define('CMD_UNICODE_LABEL', 'UNIL'); |
114 | const CMD_UNICODE_LABEL = 'UNIL'; |
115 | define('CMD_DESCRIPTION', 'DESC'); |
115 | const CMD_DESCRIPTION = 'DESC'; |
116 | 116 | ||
117 | foreach ($dos_ids as $oid => $dos_id) { |
117 | foreach ($dos_ids as $oid => $dos_id) { |
118 | $cont = ''; |
- | |
119 | - | ||
120 | $cont .= make_line(CMD_VERSION, 2022); |
118 | $cont = make_line(CMD_VERSION, 2022); |
121 | 119 | ||
122 | $cont .= make_line(CMD_OWN_ID, $dos_id.$oid); |
120 | $cont .= make_line(CMD_OWN_ID, $dos_id.$oid); |
123 | 121 | ||
124 | $parent_oid = $parent_oids[$oid]; |
122 | $parent_oid = $parent_oids[$oid]; |
125 | $parent_id = $dos_ids[$parent_oid]; |
123 | $parent_id = $dos_ids[$parent_oid]; |