[PATCH] Skip RSA1 host key when using hostbased auth

Peter Stuge peter at stuge.se
Wed Nov 18 16:55:25 AEDT 2015


Iain Morgan wrote:
> --- a/ssh.c
> +++ b/ssh.c
> @@ -1242,8 +1242,10 @@ main(int ac, char **av)
>  			sensitive_data.keys[i] = NULL;
>  
>  		PRIV_START;
> +#ifdef WITH_SSH1
>  		sensitive_data.keys[0] = key_load_private_type(KEY_RSA1,
>  		    _PATH_HOST_KEY_FILE, "", NULL, NULL);
> +#endif
>  #ifdef OPENSSL_HAS_ECC
>  		sensitive_data.keys[1] = key_load_private_cert(KEY_ECDSA,

Wouldn't you need a counter or something, for the index?


//Peter


More information about the openssh-unix-dev mailing list