From ab691765dc8d727d01f061d846e7c765e89fb299 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 8 May 2009 09:53:35 +0200 Subject: added more flexible handling of client protocol - allow different protocol versions for PAM and NSS - support more than one protocol version in the responder --- server/responder/common/responder.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/responder/common/responder.h') diff --git a/server/responder/common/responder.h b/server/responder/common/responder.h index f5d5246fb..946418c86 100644 --- a/server/responder/common/responder.h +++ b/server/responder/common/responder.h @@ -43,6 +43,12 @@ struct cli_request { struct sss_packet *out; }; +struct cli_protocol_version { + uint32_t version; + char *date; + char *description; +}; + struct sss_names_ctx { char *re_pattern; char *fq_fmt; @@ -83,6 +89,7 @@ struct cli_ctx { struct tevent_fd *cfde; struct sockaddr_un addr; struct cli_request *creq; + struct cli_protocol_version *cli_protocol_version; int priv; }; @@ -111,6 +118,7 @@ int sss_parse_name(TALLOC_CTX *memctx, int sss_cmd_execute(struct cli_ctx *cctx, struct sss_cmd_table *sss_cmds); void sss_cmd_done(struct cli_ctx *cctx, void *freectx); int sss_cmd_get_version(struct cli_ctx *cctx); +struct cli_protocol_version *register_cli_protocol_version(void); /* responder_dp.c */ int sss_dp_init(struct resp_ctx *rctx, struct sbus_method dp_methods[]); -- cgit