Changeset 1050
- Timestamp:
- 06/24/09 14:45:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/seguranca/classes/funcoes_auxiliares.php
r1035 r1050 1211 1211 1212 1212 case 0x04: 1213 // Octetstring type 1213 // Octetstring type 1214 1214 $len = ord($data[1]); 1215 1215 $bytes = 0; … … 1224 1224 { 1225 1225 $result[] = array('octet string (' . $len . ')' , Crl_parseASN($octectstring_data)); 1226 } 1227 break; 1228 1229 case 0x0C: 1230 // UTF8 STRING 1231 $len = ord($data[1]); 1232 $bytes = 0; 1233 get_length(&$len,&$bytes,$data); 1234 $octectstring_data = substr($data, 2 + $bytes, $len); 1235 $data = substr($data, 2 + $bytes + $len); 1236 if($context_especific) 1237 { 1238 $result[] = array('utf8 string(' . $len . ')' , $octectstring_data); 1239 } 1240 else 1241 { 1242 $result[] = array('utf8 string (' . $len . ')' , Crl_parseASN($octectstring_data)); 1226 1243 } 1227 1244 break; … … 1457 1474 // OID's EQUIPAMENTO/APLICAÇÃO = 2.16.76.1.3.8 , 2.16.76.1.3.3 , 2.16.76.1.3.2 , 2.16.76.1.3.4 1458 1475 // 1476 // OID para logon no NT: 1.3.6.1.4.1.311.20.2.3 1477 // 1459 1478 $oids = array('2.16.76.1.3.1' => array('1'=>array('NASCIMENTO',8), 1460 1479 '2'=>array('CPF',11), … … 1475 1494 '2.16.76.1.3.6' => array('1'=>array('CADINSS',12)), 1476 1495 '2.16.76.1.3.7' => array('1'=>array('CEI',12)), 1477 '2.16.76.1.3.8' => array('1'=>array('NOMEEMPRESARIAL',0))); 1496 '2.16.76.1.3.8' => array('1'=>array('NOMEEMPRESARIAL',0)), 1497 '1.3.6.1.4.1.311.20.2.3' => array('1'=>array('NTNOMEPRINCIPAL',0))); 1478 1498 1479 1499 $resultado = array();
Note: See TracChangeset
for help on using the changeset viewer.