Update go-dnsstamps
This commit is contained in:
parent
f06967a020
commit
e6b9f3c2c0
2
go.mod
2
go.mod
|
@ -14,7 +14,7 @@ require (
|
||||||
github.com/hashicorp/golang-lru v0.5.3
|
github.com/hashicorp/golang-lru v0.5.3
|
||||||
github.com/jedisct1/dlog v0.0.0-20190909160351-692385b00b84
|
github.com/jedisct1/dlog v0.0.0-20190909160351-692385b00b84
|
||||||
github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c
|
github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c
|
||||||
github.com/jedisct1/go-dnsstamps v0.0.0-20191014002100-c2d13697a562
|
github.com/jedisct1/go-dnsstamps v0.0.0-20191014084838-3e6e00f2b602
|
||||||
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e
|
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e
|
||||||
github.com/jedisct1/xsecretbox v0.0.0-20190909160646-b731c21297f9
|
github.com/jedisct1/xsecretbox v0.0.0-20190909160646-b731c21297f9
|
||||||
github.com/k-sone/critbitgo v1.3.0
|
github.com/k-sone/critbitgo v1.3.0
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -29,8 +29,8 @@ github.com/jedisct1/dlog v0.0.0-20190909160351-692385b00b84 h1:7Q8p5MNx7fMvIRFir
|
||||||
github.com/jedisct1/dlog v0.0.0-20190909160351-692385b00b84/go.mod h1:YXh1b5j+lwirsCCtTJW19DrbpaL9/5UzwNjI78Cvrg8=
|
github.com/jedisct1/dlog v0.0.0-20190909160351-692385b00b84/go.mod h1:YXh1b5j+lwirsCCtTJW19DrbpaL9/5UzwNjI78Cvrg8=
|
||||||
github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c h1:a/NQUT7AXkEfhaZ+nb7Uzqijo1Qc7C7SZpRrv+6UQDA=
|
github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c h1:a/NQUT7AXkEfhaZ+nb7Uzqijo1Qc7C7SZpRrv+6UQDA=
|
||||||
github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c/go.mod h1:SAINchklztk2jcLWJ4bpNF4KnwDUSUTX+cJbspWC2Rw=
|
github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c/go.mod h1:SAINchklztk2jcLWJ4bpNF4KnwDUSUTX+cJbspWC2Rw=
|
||||||
github.com/jedisct1/go-dnsstamps v0.0.0-20191014002100-c2d13697a562 h1:IAhd67mYXfbNe3HEasqunc2Bz6ZK1FF5eDLBnyKUyB4=
|
github.com/jedisct1/go-dnsstamps v0.0.0-20191014084838-3e6e00f2b602 h1:5uRCzBAhT+2HfJYnQljeiMmethbUOrYHFSO6lMx2RJg=
|
||||||
github.com/jedisct1/go-dnsstamps v0.0.0-20191014002100-c2d13697a562/go.mod h1:PCThSkefP5QIL83fIkZ3Qi5Jt02JlWTFB1j9h69Sf2Y=
|
github.com/jedisct1/go-dnsstamps v0.0.0-20191014084838-3e6e00f2b602/go.mod h1:PCThSkefP5QIL83fIkZ3Qi5Jt02JlWTFB1j9h69Sf2Y=
|
||||||
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e h1:UvSe12bq+Uj2hWd8aOlwPmoZ+CITRFrdit+sDGfAg8U=
|
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e h1:UvSe12bq+Uj2hWd8aOlwPmoZ+CITRFrdit+sDGfAg8U=
|
||||||
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU=
|
github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU=
|
||||||
github.com/jedisct1/xsecretbox v0.0.0-20190909160646-b731c21297f9 h1:nGfB2s9K0GyHuNkJmXkIjP+m7je6Q6gjirr+weAEtDo=
|
github.com/jedisct1/xsecretbox v0.0.0-20190909160646-b731c21297f9 h1:nGfB2s9K0GyHuNkJmXkIjP+m7je6Q6gjirr+weAEtDo=
|
||||||
|
|
|
@ -249,9 +249,9 @@ func newDNSCryptRelayStamp(bin []byte) (ServerStamp, error) {
|
||||||
return stamp, errors.New("Stamp is too short")
|
return stamp, errors.New("Stamp is too short")
|
||||||
}
|
}
|
||||||
binLen := len(bin)
|
binLen := len(bin)
|
||||||
pos := 0
|
pos := 1
|
||||||
length := int(bin[pos])
|
length := int(bin[pos])
|
||||||
if 1+length >= binLen-pos {
|
if 1+length > binLen-pos {
|
||||||
return stamp, errors.New("Invalid stamp")
|
return stamp, errors.New("Invalid stamp")
|
||||||
}
|
}
|
||||||
pos++
|
pos++
|
||||||
|
|
|
@ -29,7 +29,7 @@ github.com/hashicorp/golang-lru/simplelru
|
||||||
github.com/jedisct1/dlog
|
github.com/jedisct1/dlog
|
||||||
# github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c
|
# github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c
|
||||||
github.com/jedisct1/go-clocksmith
|
github.com/jedisct1/go-clocksmith
|
||||||
# github.com/jedisct1/go-dnsstamps v0.0.0-20191014002100-c2d13697a562
|
# github.com/jedisct1/go-dnsstamps v0.0.0-20191014084838-3e6e00f2b602
|
||||||
github.com/jedisct1/go-dnsstamps
|
github.com/jedisct1/go-dnsstamps
|
||||||
# github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e
|
# github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e
|
||||||
github.com/jedisct1/go-minisign
|
github.com/jedisct1/go-minisign
|
||||||
|
|
Loading…
Reference in New Issue