diff options
author | Azul <azul@leap.se> | 2012-07-26 11:46:55 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-07-26 11:46:55 +0200 |
commit | b9510e0c035a26b6d2aa55f82278d1743f2e3e07 (patch) | |
tree | 560eb40b2c489b76f416f00608e28a5ce2f5ec9d /lib/srp/client.rb | |
parent | 933df5e096e7dd9af1491b0679d588eb4254aaa1 (diff) |
session is handled by the class that includes SRP::Authentication - not the client
Diffstat (limited to 'lib/srp/client.rb')
-rw-r--r-- | lib/srp/client.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/srp/client.rb b/lib/srp/client.rb index 667d5ba..be94072 100644 --- a/lib/srp/client.rb +++ b/lib/srp/client.rb @@ -19,10 +19,10 @@ module SRP x = calculate_x(username, password, salt) a = bigrand(32).hex aa = modpow(GENERATOR, a, PRIME_N) # A = g^a (mod N) - session = server.initialize_auth(aa) - u = calculate_u(aa, session.bb, PRIME_N) - client_s = calculate_client_s(x, a, session.bb, u) - server.authenticate(calculate_m(aa,session.bb,client_s), session) + bb = server.handshake(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)) end protected |