From 56a95c99cdfd8d0cf501f92ea9156b20d2dc07c7 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 6 Aug 2012 13:07:11 +0200 Subject: hand over the login on handshake like we normally would still missing the salt in this. auth should be more independent from registry to resemble the real process more closely --- lib/srp/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/srp') diff --git a/lib/srp/client.rb b/lib/srp/client.rb index be94072..484d12b 100644 --- a/lib/srp/client.rb +++ b/lib/srp/client.rb @@ -19,7 +19,7 @@ module SRP x = calculate_x(username, password, salt) a = bigrand(32).hex aa = modpow(GENERATOR, a, PRIME_N) # A = g^a (mod N) - bb = server.handshake(aa) + bb = server.handshake(username, aa) u = calculate_u(aa, bb, PRIME_N) client_s = calculate_client_s(x, a, bb, u) server.validate(calculate_m(aa, bb, client_s)) -- cgit v1.2.3