summaryrefslogtreecommitdiff
path: root/tests/helpers/srp_helper.rb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-12-05 17:47:41 +0100
committervarac <varacanero@zeromail.org>2014-12-05 17:47:41 +0100
commit51a49227f83a615f9845461385beba5ef607967d (patch)
treea674f1a612d699255602898dbbcb8f6060d0d44b /tests/helpers/srp_helper.rb
parent049b29370e406cb424254f3be9a283f83f9e92d8 (diff)
parent7ca1a6feb2f881f2a99b624c266f0779d2402ff9 (diff)
Merge branch 'develop' of ssh://code.leap.se/leap_platform into develop
Diffstat (limited to 'tests/helpers/srp_helper.rb')
-rw-r--r--tests/helpers/srp_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/helpers/srp_helper.rb b/tests/helpers/srp_helper.rb
index 0aa1b1fb..5d30b459 100644
--- a/tests/helpers/srp_helper.rb
+++ b/tests/helpers/srp_helper.rb
@@ -6,6 +6,7 @@
require 'digest'
require 'openssl'
require 'securerandom'
+require 'base64'
module SRP
@@ -135,7 +136,7 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5
class User
include SRP::Util
- attr_accessor :username, :password, :salt, :verifier, :id, :session_token, :ok
+ attr_accessor :username, :password, :salt, :verifier, :id, :session_token, :ok, :deleted
def initialize
@username = "test_user_" + SecureRandom.urlsafe_base64(10).downcase.gsub(/[_-]/, '')
@@ -143,6 +144,7 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5
@salt = bigrand(4).hex
@verifier = modpow(GENERATOR, private_key)
@ok = false
+ @deleted = false
end
def private_key