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 /test/auth_test.rb | |
parent | 933df5e096e7dd9af1491b0679d588eb4254aaa1 (diff) |
session is handled by the class that includes SRP::Authentication - not the client
Diffstat (limited to 'test/auth_test.rb')
-rw-r--r-- | test/auth_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/auth_test.rb b/test/auth_test.rb index b8c3c05..182722f 100644 --- a/test/auth_test.rb +++ b/test/auth_test.rb @@ -10,6 +10,16 @@ class User @salt = salt @verifier = verifier end + + def handshake(aa) + @session = initialize_auth(aa) + return @session.bb + end + + def validate(m) + authenticate(m, @session) + end + end class AuthTest < Test::Unit::TestCase |