/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2016 Red Hat
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 <http://www.gnu.org/licenses/>.
*/
#ifndef _CACHE_REQ_PRIVATE_H_
#define _CACHE_REQ_PRIVATE_H_
#include <stdint.h>
#include "responder/common/responder.h"
#include "responder/common/cache_req/cache_req.h"
struct cache_req {
/* Provided input. */
int midpoint;
/* Data Provider request type resolved from @type.
* FIXME: This is currently needed for data provider calls. We should
* refactor responder_dp.c to get rid of this member. */
/* Domain related informations. */
/* Debug information */
const char *reqname;
const char *debugobj;
/* Time when the request started. Useful for by-filter lookups */
};
/* Input data. */
struct cache_req_data {
struct {
} name;
const char *cert;
const char *sid;
const char **attrs;
};
struct tevent_req *
struct tevent_context *ev,
struct tevent_req *req,
struct ldb_result **_result);
struct tevent_req *
struct tevent_context *ev,
struct sss_nc_ctx *ncache,
const char *domain,
struct cache_req_data *data);
#endif /* _CACHE_REQ_PRIVATE_H_ */