aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-06-20 18:50:46 +0200
committerMarius Halden <marius.h@lden.org>2016-06-20 18:51:28 +0200
commit9d2979051656af64820ebe12536c316593e18fb9 (patch)
tree8e9242835318b3832549081734706ee74d170290
parentbe819be1b745c4230458f6276eb90375a90acb61 (diff)
Follow c89/90
-rw-r--r--protocols/jabber/sasl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/jabber/sasl.c b/protocols/jabber/sasl.c
index c8aad776..10fbe270 100644
--- a/protocols/jabber/sasl.c
+++ b/protocols/jabber/sasl.c
@@ -471,7 +471,7 @@ static xt_status sasl_pkt_challenge_scram(struct xt_node *node, gpointer data)
*reply = NULL, *client_first_bare = NULL, *server_first = NULL,
*client_final_noproof = NULL, *auth_message = NULL, *client_final = NULL;
unsigned char *salt = NULL;
- size_t salt_len, iter_count;
+ size_t salt_len, iter_count, i;
int algo = jd->challenge.scram_algo;
size_t md_len = gcry_md_get_algo_dlen(algo);
@@ -523,7 +523,7 @@ static xt_status sasl_pkt_challenge_scram(struct xt_node *node, gpointer data)
hmac(algo, stored_key, sizeof(stored_key), (unsigned char *)auth_message, strlen(auth_message), client_signature);
- for (size_t i = 0; i < sizeof(client_key); i++) {
+ for (i = 0; i < sizeof(client_key); i++) {
client_proof[i] = client_key[i] ^ client_signature[i];
}