diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-09-25 04:29:29 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-05 10:51:55 +0200 |
commit | 3882325ff60f89d0c312e9519bdfd1351978fd73 (patch) | |
tree | 1eb9a5b850ced04673a69c53f46d40d51384caa4 /src/db/sysdb_ssh.h | |
parent | 2d6836a90bd326391782a5753f70e8ba666b5def (diff) | |
download | sssd-3882325ff60f89d0c312e9519bdfd1351978fd73.tar.gz sssd-3882325ff60f89d0c312e9519bdfd1351978fd73.tar.xz sssd-3882325ff60f89d0c312e9519bdfd1351978fd73.zip |
SSH: Expire hosts in known_hosts
Diffstat (limited to 'src/db/sysdb_ssh.h')
-rw-r--r-- | src/db/sysdb_ssh.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/db/sysdb_ssh.h b/src/db/sysdb_ssh.h index 49de66ec5..9a5159e18 100644 --- a/src/db/sysdb_ssh.h +++ b/src/db/sysdb_ssh.h @@ -27,6 +27,8 @@ #define SYSDB_SSH_HOST_OC "sshHost" +#define SYSDB_SSH_KNOWN_HOSTS_EXPIRE "sshKnownHostsExpire" + errno_t sysdb_store_ssh_host(struct sysdb_ctx *sysdb, const char *name, @@ -35,6 +37,12 @@ sysdb_store_ssh_host(struct sysdb_ctx *sysdb, struct sysdb_attrs *attrs); errno_t +sysdb_update_ssh_known_host_expire(struct sysdb_ctx *sysdb, + const char *name, + time_t now, + int known_hosts_timeout); + +errno_t sysdb_delete_ssh_host(struct sysdb_ctx *sysdb, const char *name); @@ -48,6 +56,7 @@ sysdb_get_ssh_host(TALLOC_CTX *mem_ctx, errno_t sysdb_get_ssh_known_hosts(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + time_t now, const char **attrs, struct ldb_message ***hosts, size_t *num_hosts); |