comparison svr-authpasswd.c @ 119:3394a7cb30cd private-rez

propagate of 08347df3bca787bd3621602fe2b466c85c9dc3e2 and 717950f4061f1123659ee87c7c168805af920ab7 from branch 'matt.dbclient.rez' to 'matt.dbclient.authpam'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 12 Sep 2004 05:52:36 +0000
parents b0316ce64e4b
children 364a75cfebab
comparison
equal deleted inserted replaced
118:5312ca05ed48 119:3394a7cb30cd
78 return; 78 return;
79 } 79 }
80 80
81 password = buf_getstring(ses.payload, &passwordlen); 81 password = buf_getstring(ses.payload, &passwordlen);
82 82
83 /* clear the buffer containing the password */
84 buf_incrpos(ses.payload, -passwordlen - 4);
85 m_burn(buf_getptr(ses.payload, passwordlen + 4), passwordlen + 4);
86
87 /* the first bytes of passwdcrypt are the salt */ 83 /* the first bytes of passwdcrypt are the salt */
88 testcrypt = crypt((char*)password, passwdcrypt); 84 testcrypt = crypt((char*)password, passwdcrypt);
89 m_burn(password, passwordlen); 85 m_burn(password, passwordlen);
90 m_free(password); 86 m_free(password);
91 87