diff options
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 49de66ec..9a5159e1 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); |