Ignore:
Timestamp:
04/12/11 11:01:29 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1739 - Login com certificado em atributo customizável

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/security/classes/funcoes_auxiliares.php

    r3563 r3991  
    151151        } 
    152152 
    153  
     153        function troca_espaco_por_mais($pem_data) 
     154        { 
     155            $begin = "CERTIFICATE-----"; 
     156            $end   = "-----END"; 
     157            $aux = substr($pem_data, strpos($pem_data, $begin)+strlen($begin)); 
     158            $aux = substr($aux, 0, strpos($aux, $end)); 
     159            $aux = strtr($aux,' ','+'); 
     160            $aux = '-----BEGIN CERTIFICATE-----'.$aux.'-----END CERTIFICATE-----'; 
     161            return $aux; 
     162        } 
    154163        function verificaopenssl() 
    155164        { 
Note: See TracChangeset for help on using the changeset viewer.