From b9510e0c035a26b6d2aa55f82278d1743f2e3e07 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 26 Jul 2012 11:46:55 +0200 Subject: session is handled by the class that includes SRP::Authentication - not the client --- test/auth_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') 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 -- cgit v1.2.3