diff options
author | open-iscsi <open-iscsi@d7303112-9cec-0310-bdd2-e83a94d6c2b6> | 2005-01-22 01:21:15 +0000 |
---|---|---|
committer | open-iscsi <open-iscsi@d7303112-9cec-0310-bdd2-e83a94d6c2b6> | 2005-01-22 01:21:15 +0000 |
commit | e0551578370eedfd3bc7d54d6bf1debc4694ceca (patch) | |
tree | 09ed426a251c5c574ae47db7e9fe9d0287ff1530 /usr/auth.c | |
parent | f0f34bf2b3d2b0887dfdf4233a3f29f3eb1837c2 (diff) | |
download | open-iscsi-e0551578370eedfd3bc7d54d6bf1debc4694ceca.tar.gz |
interim commit.
git-svn-id: svn://svn.berlios.de/open-iscsi@41 d7303112-9cec-0310-bdd2-e83a94d6c2b6
Diffstat (limited to 'usr/auth.c')
-rw-r--r-- | usr/auth.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -31,8 +31,8 @@ #include "auth.h" #include "initiator.h" -#include "md5.h" -#include "log.h" +#include "md5.h" +#include "log.h" static const char acl_hexstring[] = "0123456789abcdefABCDEF"; static const char acl_base64_string[] = @@ -303,10 +303,10 @@ static int acl_str_index(const char *s, int c) { char *str = strchr(s, c); - + if (str) return (str - s); - else + else return -1; } @@ -683,7 +683,7 @@ acl_set_key(struct iscsi_acl *client, int key_type, unsigned int option_count, strlcat(client->scratch_key_value, ",", AUTH_STR_MAX_LEN); strlcat(client->scratch_key_value, s, - AUTH_STR_MAX_LEN); + AUTH_STR_MAX_LEN); } } @@ -737,7 +737,7 @@ acl_chk_chap_alg_key(struct iscsi_acl *client) if (acl_text_to_number(client->scratch_key_value, &number)) continue; - + for (i = 0; i < client->chap_alg_count; i++) if (number == (unsigned long)client->chap_alg_list[i]) @@ -1209,7 +1209,7 @@ acl_rcv_end_status(struct iscsi_acl *client) } else auth_status = AUTH_STATUS_CONTINUE; - + if (auth_status == AUTH_STATUS_CONTINUE || auth_status == AUTH_STATUS_PASS) { if (client->send_key_block.dup_set) { |