diff options
author | Tim Rice <tim@multitalents.net> | 2011-01-12 22:35:43 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2011-01-12 22:35:43 -0800 |
commit | 9b87a5ce3ca693c257c6097fb4c6906910b1900b (patch) | |
tree | f44f6a65a6661ef7be852b6e00ca0610f37a1030 /opensshd.init.in | |
parent | cce927c25f93596a62b6d45c61a9d7fddf3d35c2 (diff) | |
download | openssh-git-9b87a5ce3ca693c257c6097fb4c6906910b1900b.tar.gz |
- (tim) [Makefile.in configure.ac opensshd.init.in] Add support for generating
ecdsa keys. ok djm.
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-x | opensshd.init.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opensshd.init.in b/opensshd.init.in index d0aff779..0db60caa 100755 --- a/opensshd.init.in +++ b/opensshd.init.in @@ -20,6 +20,7 @@ SSH_KEYGEN=$prefix/bin/ssh-keygen HOST_KEY_RSA1=$sysconfdir/ssh_host_key HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key +@COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key checkkeys() { @@ -32,6 +33,9 @@ checkkeys() { if [ ! -f $HOST_KEY_RSA ]; then ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N "" fi +@COMMENT_OUT_ECC@ if [ ! -f $HOST_KEY_ECDSA ]; then +@COMMENT_OUT_ECC@ ${SSH_KEYGEN} -t ecdsa -f ${HOST_KEY_ECDSA} -N "" +@COMMENT_OUT_ECC@ fi } stop_service() { |