From 8ef4f14632f88fc60a71fbe1365cb2a385449d93 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 4 Oct 2008 20:40:24 -0400 Subject: Add initial nss responder skeleton --- server/nss/nsssrv.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 server/nss/nsssrv.h (limited to 'server/nss/nsssrv.h') diff --git a/server/nss/nsssrv.h b/server/nss/nsssrv.h new file mode 100644 index 00000000..5e6c9aa5 --- /dev/null +++ b/server/nss/nsssrv.h @@ -0,0 +1,48 @@ +/* + SSSD + + NSS Responder, header file + + Copyright (C) Simo Sorce 2008 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef __NSSSRV_H__ +#define __NSSSRV_H__ + +#include +#include "../nss_client/sss_nss.h" + +struct nss_packet; + +struct cli_request { + enum sss_nss_command cmd; + void *cmd_req; + + /* original request from the wire */ + struct nss_packet *in; + + /* reply data */ + struct nss_packet *out; +}; + +/* from nsssrv_packet.c */ +int nss_packet_new(TALLOC_CTX *mem_ctx, size_t size, + struct nss_packet **rpacket); +int nss_packet_grow(struct nss_packet *packet, size_t size); +int nss_packet_recv(struct nss_packet *packet, int fd); +int nss_packet_send(struct nss_packet *packet, int fd); + +#endif /* __NSSSRV_H__ */ -- cgit