diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-07-23 12:07:07 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-07-23 12:07:07 -0400 |
commit | d98fafe427f751f22cddd9188eb3acde0bb1f728 (patch) | |
tree | 90fe3275c3793cfc42c471c4c96cf12a988e8ff3 /lib/srp.go | |
parent | f380717da9eb772488ff18e2327dbef35fbe3265 (diff) |
lib: `SRPUser`: add Ident
Diffstat (limited to 'lib/srp.go')
-rw-r--r-- | lib/srp.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |