diff --git a/go.mod b/go.mod index a0f32cb..28a2d8c 100644 --- a/go.mod +++ b/go.mod @@ -7,4 +7,6 @@ require ( golang.org/x/sys v0.32.0 ) -replace golang.org/x/sys => github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405010723-99a5f0732c0e +replace golang.org/x/sys => github.com/rwinkhart/sys-freebsd-13-xucred v0.32.0 + +replace github.com/Microsoft/go-winio => github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410 diff --git a/go.sum b/go.sum index dc324b3..bbeec0e 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= -github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= -github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405010723-99a5f0732c0e h1:YRpZcbGU/LVLwK87IURH4Sfye6Fv0ri1IRZ27loWpHs= -github.com/rwinkhart/sys-freebsd-13-xucred v0.0.0-20250405010723-99a5f0732c0e/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410 h1:NhHwFM3Pgm6zRUfFKvi0p5ndjfFbVWsRwmmhyFlG4PE= +github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/rwinkhart/sys-freebsd-13-xucred v0.32.0 h1:KRbqimv9Eexf3VB2FrRAQ4v2fGGu7gt3ayMgdT0FNao= +github.com/rwinkhart/sys-freebsd-13-xucred v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= diff --git a/peercred_windows.go b/peercred_windows.go index efbbaca..9f42721 100644 --- a/peercred_windows.go +++ b/peercred_windows.go @@ -14,7 +14,7 @@ import ( // Get returns the peer credentials for c. func Get(c net.Conn) *Creds { - creds, _ := get(winio.UtilGetPipeHandle(c)) + creds, _ := get(winio.GetPipeHandle(c)) return creds }