summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/srp.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/srp.go b/lib/srp.go
index f6773d0..ee0b1df 100644
--- a/lib/srp.go
+++ b/lib/srp.go
@@ -250,6 +250,22 @@ func (u *SRPUser) SessionKeyMacVerify(mac []byte) bool {
return u.h.MacVerify(u.salt, u.sk, mac)
}
+func (u *SRPUser) LoggedIn() bool {
+ return u.loggedIn
+}
+
+func (u *SRPUser) LogIn() {
+ u.loggedIn = true
+}
+
+func (u *SRPUser) LogOut() {
+ u.loggedIn = false
+}
+
+func (u *SRPUser) Salt() []byte {
+ return u.salt
+}
+
func NewSRPClientSession(n, g, k, ident string) (*SRPClientSession, error) {
var ok bool