2017-12-04 20:33:29 +00:00
|
|
|
From 5a09629d6d281565c3ce0d51e536bb73f4447758 Mon Sep 17 00:00:00 2001
|
2017-11-17 17:06:26 +00:00
|
|
|
From: Sumit Bose <sbose@redhat.com>
|
|
|
|
Date: Tue, 24 Oct 2017 12:50:43 +0200
|
2017-12-04 20:33:29 +00:00
|
|
|
Subject: [PATCH 30/79] nss: make memcache_delete_entry() public
|
2017-11-17 17:06:26 +00:00
|
|
|
|
|
|
|
Related to https://pagure.io/SSSD/sssd/issue/2478
|
|
|
|
|
|
|
|
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
|
---
|
|
|
|
src/responder/nss/nss_get_object.c | 2 +-
|
|
|
|
src/responder/nss/nss_private.h | 8 ++++++++
|
|
|
|
2 files changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/responder/nss/nss_get_object.c b/src/responder/nss/nss_get_object.c
|
|
|
|
index e56480af5e3369963d2e8bb17d74d1603af8e014..15faced006f754134415e766284377f0c86af0ac 100644
|
|
|
|
--- a/src/responder/nss/nss_get_object.c
|
|
|
|
+++ b/src/responder/nss/nss_get_object.c
|
|
|
|
@@ -86,7 +86,7 @@ memcache_delete_entry_by_id(struct nss_ctx *nss_ctx,
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
-static errno_t
|
|
|
|
+errno_t
|
|
|
|
memcache_delete_entry(struct nss_ctx *nss_ctx,
|
|
|
|
struct resp_ctx *rctx,
|
|
|
|
struct sss_domain_info *domain,
|
|
|
|
diff --git a/src/responder/nss/nss_private.h b/src/responder/nss/nss_private.h
|
|
|
|
index a0b573d6ecba2d8ba6f55db0adcd7ee29cbec991..5fc19d26be9adda4d967086e7b239e49a78866ee 100644
|
|
|
|
--- a/src/responder/nss/nss_private.h
|
|
|
|
+++ b/src/responder/nss/nss_private.h
|
|
|
|
@@ -92,6 +92,14 @@ struct sss_cmd_table *get_nss_cmds(void);
|
|
|
|
|
|
|
|
int nss_connection_setup(struct cli_ctx *cli_ctx);
|
|
|
|
|
|
|
|
+errno_t
|
|
|
|
+memcache_delete_entry(struct nss_ctx *nss_ctx,
|
|
|
|
+ struct resp_ctx *rctx,
|
|
|
|
+ struct sss_domain_info *domain,
|
|
|
|
+ const char *name,
|
|
|
|
+ uint32_t id,
|
|
|
|
+ enum sss_mc_type type);
|
|
|
|
+
|
|
|
|
struct tevent_req *
|
|
|
|
nss_get_object_send(TALLOC_CTX *mem_ctx,
|
|
|
|
struct tevent_context *ev,
|
|
|
|
--
|
2017-12-04 20:33:29 +00:00
|
|
|
2.15.1
|
2017-11-17 17:06:26 +00:00
|
|
|
|