Changeset 1327155
- Timestamp:
- 01/13/2016 02:52:36 AM (10 years ago)
- Location:
- xmpp-auth/trunk
- Files:
-
- 10 added
- 3 deleted
- 1 edited
-
Auth/SASL (deleted)
-
Auth/SASL.php (deleted)
-
Auth/SASL2 (added)
-
Auth/SASL2.php (added)
-
Auth/SASL2/Anonymous.php (added)
-
Auth/SASL2/Common.php (added)
-
Auth/SASL2/CramMD5.php (added)
-
Auth/SASL2/DigestMD5.php (added)
-
Auth/SASL2/External.php (added)
-
Auth/SASL2/Login.php (added)
-
Auth/SASL2/Plain.php (added)
-
Auth/SASL2/SCRAM.php (added)
-
certs/thawte_Primary_Root_CA.pem (deleted)
-
xmpp_stream.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xmpp-auth/trunk/xmpp_stream.php
r434713 r1327155 21 21 */ 22 22 23 require_once(dirname(__FILE__) . '/Auth/SASL .php');24 require_once(dirname(__FILE__) . '/Auth/SASL /DigestMD5.php');25 require_once(dirname(__FILE__) . '/Auth/SASL /Plain.php');26 require_once(dirname(__FILE__) . '/Auth/SASL /CramMD5.php');27 require_once(dirname(__FILE__) . '/Auth/SASL /SCRAM.php');28 //require_once('./Auth/SASL /Anonymous.php');23 require_once(dirname(__FILE__) . '/Auth/SASL2.php'); 24 require_once(dirname(__FILE__) . '/Auth/SASL2/DigestMD5.php'); 25 require_once(dirname(__FILE__) . '/Auth/SASL2/Plain.php'); 26 require_once(dirname(__FILE__) . '/Auth/SASL2/CramMD5.php'); 27 require_once(dirname(__FILE__) . '/Auth/SASL2/SCRAM.php'); 28 //require_once('./Auth/SASL2/Anonymous.php'); 29 29 $old_error_level = error_reporting(0); 30 30 include_once "Net/DNS.php"; // For SRV Records. // Optional. … … 581 581 if ($this->chosen_mechanism == "DIGEST-MD5") 582 582 { 583 $sasl = new Auth_SASL _DigestMD5 ();583 $sasl = new Auth_SASL2_DigestMD5 (); 584 584 $uncoded = $sasl->getResponse ($this->node, $this->password, $decoded_challenge, $this->domain, 'xmpp'); 585 585 … … 600 600 // Apparently that never gets used! 601 601 if (!isset($this->sasl)) 602 $this->sasl = new Auth_SASL _SCRAM('SHA-1');602 $this->sasl = new Auth_SASL2_SCRAM('SHA-1'); 603 603 $uncoded = $this->sasl->getResponse ($this->node, $this->password, $decoded_challenge); 604 604 … … 616 616 elseif ($this->chosen_mechanism == "CRAM-MD5") 617 617 { 618 $sasl = new Auth_SASL _CramMD5 ();618 $sasl = new Auth_SASL2_CramMD5 (); 619 619 $uncoded = $sasl->getResponse ($this->node, $this->password, $decoded_challenge); 620 620 // To be tested. Should the first argument be full jid or just username? … … 634 634 elseif ($this->chosen_mechanism == "ANONYMOUS") 635 635 { 636 $sasl = new Auth_SASL _Anonymous ();636 $sasl = new Auth_SASL2_Anonymous (); 637 637 $uncoded = $sasl->getResponse (); 638 638 } … … 738 738 if ($this->chosen_mechanism == "PLAIN") 739 739 { 740 $sasl = new Auth_SASL _Plain ();740 $sasl = new Auth_SASL2_Plain (); 741 741 $uncoded = $sasl->getResponse ($this->node . '@' . $this->domain, $this->password); 742 742 … … 750 750 // Apparently I don't come here! 751 751 if (!isset($this->sasl)) 752 $this->sasl = new Auth_SASL _SCRAM('SHA-1');752 $this->sasl = new Auth_SASL2_SCRAM('SHA-1'); 753 753 $uncoded = $this->sasl->getResponse ($this->node, $this->password); 754 754 $coded = base64_encode ($uncoded); … … 798 798 else 799 799 { 800 $sasl = new Auth_SASL _DigestMD5 ();800 $sasl = new Auth_SASL2_DigestMD5 (); 801 801 $uncoded = $sasl->getResponse ($this->node, $this->password, $decoded_challenge, $this->domain, 'xmpp'); 802 802 } … … 805 805 { 806 806 if (!isset($this->sasl)) 807 $this->sasl = new Auth_SASL _SCRAM('SHA-1');807 $this->sasl = new Auth_SASL2_SCRAM('SHA-1'); 808 808 $uncoded = $this->sasl->getResponse ($this->node, $this->password, $decoded_challenge); 809 809 } 810 810 elseif ($this->chosen_mechanism == "CRAM-MD5") 811 811 { 812 $sasl = new Auth_SASL _CramMD5 ();812 $sasl = new Auth_SASL2_CramMD5 (); 813 813 $uncoded = $sasl->getResponse ($this->node, $this->password, $decoded_challenge); 814 814 // To be tested. Should the first argument be full jid or just username? … … 816 816 elseif ($this->chosen_mechanism == "ANONYMOUS") 817 817 { 818 $sasl = new Auth_SASL _Anonymous ();818 $sasl = new Auth_SASL2_Anonymous (); 819 819 $uncoded = $sasl->getResponse (); 820 820 } … … 879 879 if ($this->chosen_mechanism == "PLAIN") 880 880 { 881 $sasl = new Auth_SASL _Plain ();881 $sasl = new Auth_SASL2_Plain (); 882 882 $uncoded = $sasl->getResponse ($this->node . '@' . $this->domain, $this->password); 883 883 … … 891 891 if (!isset($this->sasl)) 892 892 { 893 //$this->sasl = new Auth_SASL _SCRAM('SHA-1');894 $sasl = new Auth_SASL ();893 //$this->sasl = new Auth_SASL2_SCRAM('SHA-1'); 894 $sasl = new Auth_SASL2(); 895 895 $this->sasl = $sasl->factory('SCRAM-SHA-1'); 896 896 }
Note: See TracChangeset
for help on using the changeset viewer.