summaryrefslogtreecommitdiffstats
path: root/lib/srp.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-07-23 12:07:07 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-07-23 12:07:07 -0400
commitd98fafe427f751f22cddd9188eb3acde0bb1f728 (patch)
tree90fe3275c3793cfc42c471c4c96cf12a988e8ff3 /lib/srp.go
parentf380717da9eb772488ff18e2327dbef35fbe3265 (diff)
lib: `SRPUser`: add Ident
Diffstat (limited to 'lib/srp.go')
-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)