diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-04-23 09:10:08 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:37:16 -0400 |
commit | b95c6b5485eee5f45f62f87df77c9178857d625e (patch) | |
tree | 232281150a576fc026f725acac869b67ed4f0015 /src/responder/sudo/sudosrv_private.h | |
parent | 7d2700f7a781d894fab8d846e872b2c6c35d0145 (diff) | |
download | sssd-b95c6b5485eee5f45f62f87df77c9178857d625e.tar.gz sssd-b95c6b5485eee5f45f62f87df77c9178857d625e.tar.xz sssd-b95c6b5485eee5f45f62f87df77c9178857d625e.zip |
sudo responder: discard in-memory cache
Diffstat (limited to 'src/responder/sudo/sudosrv_private.h')
-rw-r--r-- | src/responder/sudo/sudosrv_private.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h index b806c96e9..47850ad63 100644 --- a/src/responder/sudo/sudosrv_private.h +++ b/src/responder/sudo/sudosrv_private.h @@ -43,15 +43,7 @@ struct sudo_ctx { /* * options */ - int cache_timeout; bool timed; - - /* - * Key: domain for SSS_DP_SUDO_DEFAULTS - * domain:username for SSS_DP_SUDO_USER - * Val: struct sudo_cache_entry * - */ - hash_table_t *cache; }; struct sudo_cmd_ctx { @@ -122,24 +114,4 @@ sss_dp_get_sudoers_recv(TALLOC_CTX *mem_ctx, dbus_uint32_t *err_min, char **err_msg); -errno_t sudosrv_cache_init(TALLOC_CTX *mem_ctx, - unsigned long count, - hash_table_t **table); - -errno_t sudosrv_cache_lookup(hash_table_t *table, - struct sudo_dom_ctx *dctx, - bool check_next, - const char *username, - size_t *res_count, - struct sysdb_attrs ***res); - -errno_t sudosrv_cache_set_entry(struct tevent_context *ev, - struct sudo_ctx *sudo_ctx, - hash_table_t *table, - struct sss_domain_info *domain, - const char *username, - size_t res_count, - struct sysdb_attrs **res, - time_t timeout); - #endif /* _SUDOSRV_PRIVATE_H_ */ |