diff options
Diffstat (limited to 'src/db/sysdb_ssh.h')
-rw-r--r-- | src/db/sysdb_ssh.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/db/sysdb_ssh.h b/src/db/sysdb_ssh.h index 3136dcc0..49de66ec 100644 --- a/src/db/sysdb_ssh.h +++ b/src/db/sysdb_ssh.h @@ -25,10 +25,13 @@ #define SSH_HOSTS_SUBDIR "ssh_hosts" +#define SYSDB_SSH_HOST_OC "sshHost" + errno_t sysdb_store_ssh_host(struct sysdb_ctx *sysdb, const char *name, const char *alias, + time_t now, struct sysdb_attrs *attrs); errno_t @@ -36,11 +39,17 @@ sysdb_delete_ssh_host(struct sysdb_ctx *sysdb, const char *name); errno_t -sysdb_search_ssh_hosts(TALLOC_CTX *mem_ctx, - struct sysdb_ctx *sysdb, - const char *name, - const char **attrs, - struct ldb_message ***hosts, - size_t *host_count); +sysdb_get_ssh_host(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *sysdb, + const char *name, + const char **attrs, + struct ldb_message **host); + +errno_t +sysdb_get_ssh_known_hosts(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *sysdb, + const char **attrs, + struct ldb_message ***hosts, + size_t *num_hosts); #endif /* _SYSDB_SSH_H_ */ |