summaryrefslogtreecommitdiff
path: root/src/nslcd_proto
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-27 00:41:24 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-27 00:41:24 -0600
commitf2482fcbf1bd7d521bb45192065e661971f227e6 (patch)
tree1d8fba4627433b72e0b5c043b57148cf8d3c203b /src/nslcd_proto
parentbf31108a18d4d592a2464a580db813a58387e8fe (diff)
wip
Diffstat (limited to 'src/nslcd_proto')
-rw-r--r--src/nslcd_proto/Makefile2
-rw-r--r--src/nslcd_proto/nslcd_h.go10
2 files changed, 4 insertions, 8 deletions
diff --git a/src/nslcd_proto/Makefile b/src/nslcd_proto/Makefile
index 96defbd..53b4424 100644
--- a/src/nslcd_proto/Makefile
+++ b/src/nslcd_proto/Makefile
@@ -32,7 +32,7 @@ $d/enumerator-list.mk: $d/responses.txt $d/Makefile
< $< sed -rn 's|.*|generate += $$d/enumerator@&.go|p' > $@
$d/requests.txt: $d/nslcd_h.go $d/Makefile
- < $< grep -Eo 'Request_([^_ ]+)(_\S+)?' | sed 's/^Request_//' > $@
+ < $< grep -Eo '\btype Request_([^_ ]+)(_\S+)?' | sed 's/^type Request_//' > $@
$d/responses.txt: $d/interface_backend.go $d/Makefile
< $< sed -rn 's/.* (\S+)_Enumerator$$/\1/p' | sort -u > $@
diff --git a/src/nslcd_proto/nslcd_h.go b/src/nslcd_proto/nslcd_h.go
index 4034472..394e91c 100644
--- a/src/nslcd_proto/nslcd_h.go
+++ b/src/nslcd_proto/nslcd_h.go
@@ -80,19 +80,15 @@ type void struct{}
const NSLCD_VERSION int32 = 0x00000002
/* Get a NSLCD configuration option. There is one request parameter: */
-type Request_Config_Get struct {
- Key int32
-}
+type Request_Config_Get int32 /* NSLCD_CONFIG_* */
/* the result value is: */
-type Config struct {
- Value string /* interpretation depending on request */
-}
+type Config string /* interpretation depending on request */
const NSLCD_ACTION_CONFIG_GET int32 = 0x00010001
const (
/* return the message, if any, that is presented to the user when password
modification through PAM is prohibited */
- NSLCD_CONFIG_PAM_PASSWORD_PROHIBIT_MESSAGE int32 = 1
+ NSLCD_CONFIG_PAM_PASSWORD_PROHIBIT_MESSAGE Request_Config_Get = 1
)
/* Email alias (/etc/aliases) NSS requests. The result values for a