Changeset 1050


Ignore:
Timestamp:
06/24/09 14:45:21 (15 years ago)
Author:
rafaelraymundo
Message:

Ticket #562 - Otimizacao do login com certificado digital

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/seguranca/classes/funcoes_auxiliares.php

    r1035 r1050  
    12111211 
    12121212                                case 0x04: 
    1213                                         // Octetstring type 
     1213                                        // Octetstring type  
    12141214                                        $len = ord($data[1]); 
    12151215                                        $bytes = 0; 
     
    12241224                                        { 
    12251225                                                $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)); 
    12261243                                        } 
    12271244                                        break; 
     
    14571474                //  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  
    14581475                //       
     1476                //  OID  para logon no NT:  1.3.6.1.4.1.311.20.2.3 
     1477                // 
    14591478                $oids = array('2.16.76.1.3.1' => array('1'=>array('NASCIMENTO',8), 
    14601479                                                               '2'=>array('CPF',11), 
     
    14751494                                     '2.16.76.1.3.6' => array('1'=>array('CADINSS',12)),                                                               
    14761495                                     '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)));                                     
    14781498                                      
    14791499                $resultado = array();  
Note: See TracChangeset for help on using the changeset viewer.