Subversion Repositories oidplus

Rev

Rev 1439 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1439 Rev 1440
Line 376... Line 376...
376
                $ids = parent::getAltIds();
376
                $ids = parent::getAltIds();
377
 
377
 
378
                // (VTS F2) MAC address (EUI/ELI/...) to AID (PIX allowed)
378
                // (VTS F2) MAC address (EUI/ELI/...) to AID (PIX allowed)
379
                $size_nibble = strlen($this->number)-1;
379
                $size_nibble = strlen($this->number)-1;
380
                if (($size_nibble >= 0) && ($size_nibble <= 0xF)) {
380
                if (($size_nibble >= 0) && ($size_nibble <= 0xF)) {
381
                        $aid = 'D276000186F2'.dechex($size_nibble).$this->number;
381
                        $aid = 'D276000186F2'.strtoupper(dechex($size_nibble)).$this->number;
-
 
382
                        if ((strlen($aid)%2) == 1) $aid .= 'F';
382
                        $aid_is_ok = aid_canonize($aid);
383
                        $aid_is_ok = aid_canonize($aid);
383
                        if ($aid_is_ok) $ids[] = new OIDplusAltId('aid', $aid, _L('Application Identifier (ISO/IEC 7816)'), ' ('._L('Optional PIX allowed, without prefix').')', 'https://hosted.oidplus.com/viathinksoft/?goto=aid%3AD276000186F2');
384
                        if ($aid_is_ok) $ids[] = new OIDplusAltId('aid', $aid, _L('Application Identifier (ISO/IEC 7816)'), ' ('._L('Optional PIX allowed, without prefix').')', 'https://hosted.oidplus.com/viathinksoft/?goto=aid%3AD276000186F2');
384
                }
385
                }
385
 
386
 
386
                return $ids;
387
                return $ids;