From 231868ac0c5d34eeed70c84ff96069ef691203e5 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 21 May 2013 23:59:16 +0100 Subject: Remove support for upgrading from ssh-nonfree. --- debian/openssh-server.config | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'debian/openssh-server.config') diff --git a/debian/openssh-server.config b/debian/openssh-server.config index 4cd14a753..3cbcf6ea6 100644 --- a/debian/openssh-server.config +++ b/debian/openssh-server.config @@ -35,23 +35,6 @@ then fi fi -key=/etc/ssh/ssh_host_key -export key -if [ -n "$version" ] && [ -f $key ] && [ ! -x /usr/bin/ssh-keygen ] && - dpkg --compare-versions "$version" lt 1.2.28 -then - # make sure that keys get updated to get rid of IDEA; preinst - # actually does the work, but if the old ssh-keygen is not found, - # it can't do that -- thus, we tell the user that he must create - # a new host key. - printf '\0\0' | 3<&0 sh -c \ - 'dd if=$key bs=1 skip=32 count=2 2>/dev/null | cmp -s - /dev/fd/3' || { - # this means that bytes 32&33 of the key were not both zero, in which - # case the key is encrypted, which we need to fix - db_input high ssh/encrypted_host_key_but_no_keygen || true - } -fi - db_go -- cgit v1.2.3