summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-05-14 15:02:21 -0400
committersiddharth <s@ricketyspace.net>2022-05-14 15:02:48 -0400
commit39f2d7613f8a9ee72d6bf555491b3fc043ceaf03 (patch)
treecd58fafce532a92dbb1f24f5e3ce2e9df04c149b
parent0a2b4a176bf39812685d7dd76cadbda668809bf9 (diff)
lib: srp: update SRPClientSession
Add `loggedIn` field.
-rw-r--r--lib/srp.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/srp.go b/lib/srp.go
index 575e54f..0c5843b 100644
--- a/lib/srp.go
+++ b/lib/srp.go
@@ -90,6 +90,8 @@ type SRPClientSession struct {
a *big.Int
// Session key.
sk []byte
+ // Open session flag. true if there is an open session.
+ loggedIn bool
}
func (server *SRPServer) RegisterUser(user *SRPUser) error {