summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-05-14 15:54:59 -0400
committersiddharth <s@ricketyspace.net>2022-05-14 15:54:59 -0400
commit36b724b404ec8a02c807767edd6c50293680b86b (patch)
tree7932b73d3fd5ed5d8e4a0e2de3531d31897edcce /lib
parent84f32c0bd1b4a35db0bb3958aa9f3e71a539a3ed (diff)
challeng: c36: implement logout
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
}