summaryrefslogtreecommitdiffstats
path: root/src/responder/ssh/sshsrv.c
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-04-18 07:05:29 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-24 09:50:56 -0400
commit4fa3ef8d8a8a3cddf8025d306c3b90b37dd431bc (patch)
tree34d80280cfa9ae80139808f6af0df6f668f8ed4e /src/responder/ssh/sshsrv.c
parentb35f20cd8ecdc8308a3201e55752fb0443ec6ae4 (diff)
downloadsssd-4fa3ef8d8a8a3cddf8025d306c3b90b37dd431bc.tar.gz
sssd-4fa3ef8d8a8a3cddf8025d306c3b90b37dd431bc.tar.xz
sssd-4fa3ef8d8a8a3cddf8025d306c3b90b37dd431bc.zip
SSH: Add support for hashed known_hosts
https://fedorahosted.org/sssd/ticket/1203
Diffstat (limited to 'src/responder/ssh/sshsrv.c')
-rw-r--r--src/responder/ssh/sshsrv.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/responder/ssh/sshsrv.c b/src/responder/ssh/sshsrv.c
index f0cee9f03..a423231b5 100644
--- a/src/responder/ssh/sshsrv.c
+++ b/src/responder/ssh/sshsrv.c
@@ -128,6 +128,19 @@ int ssh_process_init(TALLOC_CTX *mem_ctx,
ssh_dp_reconnect_init, iter);
}
+ /* Get responder options */
+
+ /* Get ssh_hash_known_hosts option */
+ ret = confdb_get_bool(ssh_ctx->rctx->cdb,
+ CONFDB_SSH_CONF_ENTRY, CONFDB_SSH_HASH_KNOWN_HOSTS,
+ CONFDB_DEFAULT_SSH_HASH_KNOWN_HOSTS,
+ &ssh_ctx->hash_known_hosts);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_FATAL_FAILURE, ("Error reading from confdb (%d) [%s]\n",
+ ret, strerror(ret)));
+ return ret;
+ }
+
DEBUG(SSSDBG_TRACE_FUNC, ("SSH Initialization complete\n"));
return EOK;