summaryrefslogtreecommitdiff
path: root/src/nslcd_proto
diff options
context:
space:
mode:
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