summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/srp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/srp.go b/lib/srp.go
index ec3fed6..18cf5dd 100644
--- a/lib/srp.go
+++ b/lib/srp.go
@@ -259,6 +259,9 @@ func (u *SRPUser) LogIn() {
}
func (u *SRPUser) LogOut() {
+ u.b = nil // Reset secret ephemeral value
+ u.u = nil // Reset scrambling parameter.
+ u.sk = []byte{} // Reset session key
u.loggedIn = false
}