summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2013-03-26 14:41:49 (GMT)
committerPetr Lautrbach <plautrba@redhat.com>2013-03-26 14:43:28 (GMT)
commit811ec1dd368fff55a11fa6a1fcd6ee7c0f4ae466 (patch)
treec1b757440705bed63b5a0f976cc3cb14a8530f4f
parent1b95bc38df6242a152f46c7a71eb58962d54757d (diff)
downloadopenssh-811ec1dd368fff55a11fa6a1fcd6ee7c0f4ae466.zip
openssh-811ec1dd368fff55a11fa6a1fcd6ee7c0f4ae466.tar.gz
openssh-811ec1dd368fff55a11fa6a1fcd6ee7c0f4ae466.tar.xz
allow specification of alternate host key location(s) via /etc/sysconfig/sshd
<john_florian@dart.biz> (#865803)
-rw-r--r--sshd-keygen6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshd-keygen b/sshd-keygen
index c6c7d6b..adb5b88 100644
--- a/sshd-keygen
+++ b/sshd-keygen
@@ -8,15 +8,15 @@
# source function library
. /etc/rc.d/init.d/functions
-# pull in sysconfig settings
-[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
-
# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
+# pull in sysconfig settings
+[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
+
fips_enabled() {
if [ -r /proc/sys/crypto/fips_enabled ]; then
cat /proc/sys/crypto/fips_enabled