]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: include rejected signature algorithm in error message
authordjm@openbsd.org <djm@openbsd.org>
Thu, 6 Jan 2022 22:01:14 +0000 (22:01 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 6 Jan 2022 22:21:38 +0000 (09:21 +1100)
and not the (useless) key type; ok markus

OpenBSD-Commit-ID: 4180b5ec7ab347b43f84e00b1972515296dab023

auth2-hostbased.c

index 10f9ea14f44310b3b5d64cd76bfdf17b9de1d9dd..36b9d2f5b0e5fc35c133081950cd9ab4cb7afaf3 100644 (file)
@@ -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.
  *
@@ -108,8 +108,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,