summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/util.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-26 20:25:52 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-26 20:25:52 -0600
commit13bb2e14fcdd260d060b7240357d4a8a80002114 (patch)
tree8bd49d988aa597c98578833b0b82b952b203c98b /src/nslcd_proto/util.go
parenta6ac8f680062069b2821214f5b74cc96673ee4ca (diff)
work
Diffstat (limited to 'src/nslcd_proto/util.go')
-rw-r--r--src/nslcd_proto/util.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nslcd_proto/util.go b/src/nslcd_proto/util.go
index 38c5705..1f38c8e 100644
--- a/src/nslcd_proto/util.go
+++ b/src/nslcd_proto/util.go
@@ -1,6 +1,9 @@
package nslcd_proto
-import "io"
+import (
+ "io"
+ "syscall"
+)
type NslcdError string
@@ -40,7 +43,7 @@ func Read(fd io.Reader, data interface{}) (err error) {
return
}
-func HandleRequest(in io.Reader, out io.Writer, backend Backend) (err error) {
+func HandleRequest(backend Backend, in io.Reader, out io.Writer, cred syscall.Ucred) (err error) {
err = nil
defer func() {
if r := recover(); r != nil {
@@ -52,11 +55,6 @@ func HandleRequest(in io.Reader, out io.Writer, backend Backend) (err error) {
}
}
}()
- handleRequest(in, out, backend)
+ handleRequest(backend, in, out, cred)
return
}
-
-// Initialize() error { func
-// e := c.SetReadDeadline(...)
-// e := c.SetWriteDeadline(...)
-// }