summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/util.go
diff options
context:
space:
mode:
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(...)
-// }