diff --git a/example/primefield.go b/example/primefield.go index bd99ef8..ecd8b4e 100644 --- a/example/primefield.go +++ b/example/primefield.go @@ -9,13 +9,12 @@ package main import ( - "os" "fmt" - "strconv" "github.com/opencoff/go-srp" + "os" + "strconv" ) - func main() { if len(os.Args) == 1 { diff --git a/go.mod b/go.mod index 7d81d0c..60f8831 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,5 @@ module github.com/opencoff/go-srp -require ( - golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 - golang.org/x/sys v0.0.0-20190412213103-97732733099d -) - go 1.13 + +require golang.org/x/crypto v0.0.0-20200109152110-61a87790db17 diff --git a/go.sum b/go.sum index 7f8e779..679f4cb 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5 h1:8dUaAV7K4uHsF56JQWkprecIQKdPHtR9jCHF5nB8uzc= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 h1:0GoQqolDA55aaLxZyTzK/Y2ePZzZTUrRacwib7cNsYQ= +golang.org/x/crypto v0.0.0-20200109152110-61a87790db17 h1:nVJ3guKA9qdkEQ3TUdXI9QSINo2CUPM/cySEvw2w8I0= +golang.org/x/crypto v0.0.0-20200109152110-61a87790db17/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/srp_test.go b/srp_test.go index 9ae948f..1f64f39 100644 --- a/srp_test.go +++ b/srp_test.go @@ -31,7 +31,6 @@ func newAsserter(t *testing.T) func(cond bool, msg string, args ...interface{}) } } - type userdb struct { s *SRP u map[string]string @@ -155,4 +154,3 @@ func TestSRP(t *testing.T) { db.verify(t, user, badpass, false) } } -