From: djm Date: Thu, 6 Jan 2022 22:01:14 +0000 (+0000) Subject: include rejected signature algorithm in error message and not the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e19b8f520b1ed9bdda61243f5668d11ae6996237;p=openbsd include rejected signature algorithm in error message and not the (useless) key type; ok markus --- diff --git a/usr.bin/ssh/auth2-hostbased.c b/usr.bin/ssh/auth2-hostbased.c index f99f93e4616..2ab222ed63d 100644 --- a/usr.bin/ssh/auth2-hostbased.c +++ b/usr.bin/ssh/auth2-hostbased.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2-hostbased.c,v 1.48 2021/12/19 22:12:07 djm Exp $ */ +/* $OpenBSD: auth2-hostbased.c,v 1.49 2022/01/06 22:01:14 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -107,8 +107,8 @@ userauth_hostbased(struct ssh *ssh, const char *method) goto done; } if (match_pattern_list(pkalg, options.hostbased_accepted_algos, 0) != 1) { - logit_f("key type %s not in HostbasedAcceptedAlgorithms", - sshkey_type(key)); + logit_f("signature algorithm %s not in " + "HostbasedAcceptedAlgorithms", pkalg); goto done; } if ((r = sshkey_check_cert_sigtype(key,