summaryrefslogtreecommitdiff
path: root/opensshd.init.in
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2011-01-12 22:35:43 -0800
committerTim Rice <tim@multitalents.net>2011-01-12 22:35:43 -0800
commit9b87a5ce3ca693c257c6097fb4c6906910b1900b (patch)
treef44f6a65a6661ef7be852b6e00ca0610f37a1030 /opensshd.init.in
parentcce927c25f93596a62b6d45c61a9d7fddf3d35c2 (diff)
- (tim) [Makefile.in configure.ac opensshd.init.in] Add support for generating
ecdsa keys. ok djm.
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-xopensshd.init.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/opensshd.init.in b/opensshd.init.in
index d0aff7794..0db60caa7 100755
--- a/opensshd.init.in
+++ b/opensshd.init.in
@@ -20,6 +20,7 @@ SSH_KEYGEN=$prefix/bin/ssh-keygen
20HOST_KEY_RSA1=$sysconfdir/ssh_host_key 20HOST_KEY_RSA1=$sysconfdir/ssh_host_key
21HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key 21HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key
22HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key 22HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key
23@COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key
23 24
24 25
25checkkeys() { 26checkkeys() {
@@ -32,6 +33,9 @@ checkkeys() {
32 if [ ! -f $HOST_KEY_RSA ]; then 33 if [ ! -f $HOST_KEY_RSA ]; then
33 ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N "" 34 ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N ""
34 fi 35 fi
36@COMMENT_OUT_ECC@ if [ ! -f $HOST_KEY_ECDSA ]; then
37@COMMENT_OUT_ECC@ ${SSH_KEYGEN} -t ecdsa -f ${HOST_KEY_ECDSA} -N ""
38@COMMENT_OUT_ECC@ fi
35} 39}
36 40
37stop_service() { 41stop_service() {