summaryrefslogtreecommitdiffstats
path: root/src/responder/common/negcache.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-06-03 16:18:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-19 18:48:13 +0200
commit8d4dedea12e2b71f83a1b0e5f0fc5cdb706dcf98 (patch)
tree3cfba2ea6cae424523da326c9d4d32b5a74fdf6a /src/responder/common/negcache.h
parentcaacea0dbfdc92613ae992681053b1d2665b80ca (diff)
downloadsssd-8d4dedea12e2b71f83a1b0e5f0fc5cdb706dcf98.tar.gz
sssd-8d4dedea12e2b71f83a1b0e5f0fc5cdb706dcf98.tar.xz
sssd-8d4dedea12e2b71f83a1b0e5f0fc5cdb706dcf98.zip
ncache: add calls for certificate based searches
Related to https://fedorahosted.org/sssd/ticket/2596 Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder/common/negcache.h')
-rw-r--r--src/responder/common/negcache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/common/negcache.h b/src/responder/common/negcache.h
index b96fbfda5..e7cbfe114 100644
--- a/src/responder/common/negcache.h
+++ b/src/responder/common/negcache.h
@@ -37,6 +37,7 @@ int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, int ttl,
int sss_ncache_check_uid(struct sss_nc_ctx *ctx, int ttl, uid_t uid);
int sss_ncache_check_gid(struct sss_nc_ctx *ctx, int ttl, gid_t gid);
int sss_ncache_check_sid(struct sss_nc_ctx *ctx, int ttl, const char *sid);
+int sss_ncache_check_cert(struct sss_nc_ctx *ctx, int ttl, const char *cert);
int sss_ncache_check_service(struct sss_nc_ctx *ctx, int ttl,
struct sss_domain_info *dom,
@@ -60,6 +61,8 @@ int sss_ncache_set_netgr(struct sss_nc_ctx *ctx, bool permanent,
int sss_ncache_set_uid(struct sss_nc_ctx *ctx, bool permanent, uid_t uid);
int sss_ncache_set_gid(struct sss_nc_ctx *ctx, bool permanent, gid_t gid);
int sss_ncache_set_sid(struct sss_nc_ctx *ctx, bool permanent, const char *sid);
+int sss_ncache_set_cert(struct sss_nc_ctx *ctx, bool permanent,
+ const char *cert);
int sss_ncache_set_service_name(struct sss_nc_ctx *ctx, bool permanent,
struct sss_domain_info *dom,
const char *name, const char *proto);