From eca06bebf568b0d00285d924db8284cb9eed396d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 30 Nov 2009 14:55:19 +0100 Subject: Reduce code duplication between LDAP child and Kerberos child Fixes: #294 --- server/providers/child_common.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'server/providers/child_common.h') diff --git a/server/providers/child_common.h b/server/providers/child_common.h index 75cb3a6fc..894255b57 100644 --- a/server/providers/child_common.h +++ b/server/providers/child_common.h @@ -25,10 +25,13 @@ #ifndef __CHILD_COMMON_H__ #define __CHILD_COMMON_H__ +#include #include #include #include +#include "util/util.h" + #define IN_BUF_SIZE 512 #define MAX_CHILD_MSG_SIZE 255 @@ -38,6 +41,11 @@ struct response { uint8_t *buf; }; +struct io_buffer { + uint8_t *data; + size_t size; +}; + uint8_t *copy_buffer_and_add_zero(TALLOC_CTX *mem_ctx, const uint8_t *src, size_t len); @@ -57,4 +65,10 @@ void child_sig_handler(struct tevent_context *ev, struct tevent_signal *sige, int signum, int count, void *__siginfo, void *pvt); +errno_t exec_child(TALLOC_CTX *mem_ctx, + int *pipefd_to_child, int *pipefd_from_child, + const char *binary, int debug_fd); + +void child_cleanup(int readfd, int writefd); + #endif /* __CHILD_COMMON_H__ */ -- cgit