summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/srp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/srp.go b/lib/srp.go
index 37430b4..e9417c4 100644
--- a/lib/srp.go
+++ b/lib/srp.go
@@ -130,6 +130,10 @@ func NewSRPUser(n, g, k, ident, pass string) (*SRPUser, error) {
return user, nil
}
+func (user *SRPUser) Ident() string {
+ return user.ident
+}
+
func (u *SRPUser) ComputeVerifier(pass string) {
// Generate private key `x` from salt+pass
m := make([]byte, 0)