lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
protected function readSubBlock($block)
    {
        // remove terminatorByte cause it's always the same
        $block = substr($block, 0, -8);

        $length = strlen($block);
        $offset = 0;
        $data = [];
        while ($offset < $length) {
            $blockLength = hexdec(substr(substr($block, $offset, 8), -4)) / 256;
            $offset += 8;
            $data[] = hex2bin(substr($block, $offset, $blockLength * 2));
            $offset += $blockLength * 2;
        }

        if (3 == count($data)) {
            $data[] = $data[2];
            $data[2] = '';
        }

        $data[] = $this->createByte('00');

        return $data;
    }
protected function readSubBlock($block)
    {
        // remove terminatorByte cause it's always the same
        $block = substr($block, 0, -8);

        $length = strlen($block);
        $offset = 0;
        $data = [];
        while ($offset < $length) {
            $blockLength = hexdec(substr(substr($block, $offset, 8), -4)) / 256;
            $offset += 8;
            $data[] = hex2bin(substr($block, $offset, $blockLength * 2));
            $offset += $blockLength * 2;
        }

        if (3 == count($data)) {
            $data[] = $data[2];
            $data[2] = '';
        }

        $data[] = $this->createByte('00');

        return $data;
    }
protected function readSubBlock ( $ block ) { // remove terminatorByte cause it's always the same $ block = substr ( $ block , 0 , - 8 ) ; $ length = strlen ( $ block ) ; $ offset = 0 ; $ data = [ ] ; while ( $ offset < $ length ) { $ blockLength = hexdec ( substr ( substr ( $ block , $ offset , 8 ) , - 4 ) ) / 256 ; $ offset += 8 ; $ data [ ] = hex2bin ( substr ( $ block , $ offset , $ blockLength * 2 ) ) ; $ offset += $ blockLength * 2 ; } if ( 3 == count ( $ data ) ) { $ data [ ] = $ data [ 2 ] ; $ data [ 2 ] = '' ; } $ data [ ] = $ this -> createByte ( '00' ) ; return $ data ; }
Read the blob information in from message2.

@return array
Read the blob information in from message2 .