X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=8e1ca2841b13267c80c9f6328ba4c436ea94701b;hp=ba419786ee036745972825ec49629d9f1cf342ab;hb=15714678f57f0e8931a70d64dca43c31e693bb61;hpb=e4db7671a91a7552c642acc979f0eb278f8d467f diff --git a/client_common.c b/client_common.c index ba419786..8e1ca284 100644 --- a/client_common.c +++ b/client_common.c @@ -194,9 +194,9 @@ static void client_post_select(struct sched *s, struct task *t) if (ret < 0) goto out; sha1_hash((char *)crypt_buf, CHALLENGE_SIZE, challenge_sha1); - ct->scc.send = sc_new(crypt_buf + CHALLENGE_SIZE, RC4_KEY_LEN); - ct->scc.recv = sc_new(crypt_buf + CHALLENGE_SIZE + RC4_KEY_LEN, - RC4_KEY_LEN); + ct->scc.send = sc_new(crypt_buf + CHALLENGE_SIZE, SESSION_KEY_LEN); + ct->scc.recv = sc_new(crypt_buf + CHALLENGE_SIZE + SESSION_KEY_LEN, + SESSION_KEY_LEN); hash_to_asc(challenge_sha1, buf); PARA_INFO_LOG("--> %s\n", buf); ret = send_bin_buffer(ct->scc.fd, (char *)challenge_sha1,