Changeset 3405394 for perl/lib/Net/XMPP
- Timestamp:
- Nov 11, 2006, 3:03:56 AM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 51c57f8
- Parents:
- 005562f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/Net/XMPP/Protocol.pm
r0ff8d110 r3405394 1831 1831 delete($args{digest}); 1832 1832 delete($args{type}); 1833 my $password = delete $args{password}; 1834 if (ref($password) eq 'CODE') 1835 { 1836 $password = $password->(); 1837 } 1833 1838 1834 1839 #-------------------------------------------------------------------------- … … 1844 1849 if ($authType eq "zerok") 1845 1850 { 1846 my $hashA = Digest::SHA1::sha1_hex( delete($args{password}));1851 my $hashA = Digest::SHA1::sha1_hex($password); 1847 1852 $args{hash} = Digest::SHA1::sha1_hex($hashA.$token); 1848 1853 … … 1863 1868 if ($authType eq "digest") 1864 1869 { 1865 my $password = delete($args{password});1866 1870 $args{digest} = Digest::SHA1::sha1_hex($self->GetStreamID().$password); 1867 1871 } … … 1885 1889 # return "". If no then return error string from the reply. 1886 1890 #-------------------------------------------------------------------------- 1891 $password =~ tr/\0-\377/x/; 1887 1892 return unless defined($iqLogin); 1888 1893 return ( $iqLogin->GetErrorCode() , $iqLogin->GetError() )
Note: See TracChangeset
for help on using the changeset viewer.