27 #require_once 'Zend/Mail/Protocol/Smtp.php'; 52 if (isset(
$config[
'username'])) {
53 $this->_username =
$config[
'username'];
55 if (isset(
$config[
'password'])) {
56 $this->_password =
$config[
'password'];
60 parent::__construct($host, $port,
$config);
74 $this->
_send(
'AUTH CRAM-MD5');
75 $challenge = $this->
_expect(334);
76 $challenge = base64_decode($challenge);
77 $digest = $this->
_hmacMd5($this->_password, $challenge);
78 $this->
_send(base64_encode($this->_username .
' ' . $digest));
94 if (strlen($key) > 64) {
95 $key = pack(
'H32', md5($key));
96 }
elseif (strlen($key) < 64) {
97 $key = str_pad($key,
$block,
"\0");
100 $k_ipad = substr($key, 0, 64) ^ str_repeat(chr(0x36), 64);
101 $k_opad = substr($key, 0, 64) ^ str_repeat(chr(0x5C), 64);
103 $inner = pack(
'H32', md5($k_ipad .
$data));
104 $digest = md5($k_opad . $inner);
_expect($code, $timeout=null)
elseif(isset( $params[ 'redirect_parent']))
_hmacMd5($key, $data, $block=64)
__construct($host='127.0.0.1', $port=null, $config=null)