summaryrefslogtreecommitdiff
path: root/usr/auth.c
diff options
context:
space:
mode:
authordmitry_yus <dmitry_yus@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2005-09-23 19:50:23 +0000
committerdmitry_yus <dmitry_yus@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2005-09-23 19:50:23 +0000
commit978163e89439d1e89f80e3f13bf9526b5ff5c6c0 (patch)
tree7e7c23691f23a5c34cba6adabbe84a44b3f29e75 /usr/auth.c
parent1e75fd836c728de2573877fe0ba0d672b9545335 (diff)
downloadopen-iscsi-978163e89439d1e89f80e3f13bf9526b5ff5c6c0.tar.gz
James Sneeringer: changing all instances of password_length_in to
password_in_length. I thought this would be simpler than trying to change the macro. git-svn-id: svn://svn.berlios.de/open-iscsi@414 d7303112-9cec-0310-bdd2-e83a94d6c2b6
Diffstat (limited to 'usr/auth.c')
-rw-r--r--usr/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/auth.c b/usr/auth.c
index 3e0a429..8fc1b98 100644
--- a/usr/auth.c
+++ b/usr/auth.c
@@ -116,7 +116,7 @@ acl_chap_auth_request(struct iscsi_acl *client, char *username, unsigned int id,
return AUTH_STATUS_FAIL;
}
- if ((session->password_length_in < 1) ||
+ if ((session->password_in_length < 1) ||
(session->password_in == NULL) ||
(session->password_in[0] == '\0')) {
log_error("failing authentication, no incoming password "
@@ -142,7 +142,7 @@ acl_chap_auth_request(struct iscsi_acl *client, char *username, unsigned int id,
/* shared secret */
auth_md5_update(&context, (unsigned char *)session->password_in,
- session->password_length_in);
+ session->password_in_length);
/* challenge value */
auth_md5_update(&context, (unsigned char *)challenge_data,