]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Cast serial no for %lld to prevent compiler warnings on some
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 14 Aug 2025 09:26:53 +0000 (09:26 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 14 Aug 2025 09:39:55 +0000 (19:39 +1000)
platforms.

OpenBSD-Commit-ID: 15644234b58abc9c6da2994f0422a5aa344a9e89

auth2-hostbased.c

index e28134a1ae2cefa4e6247ceeebde6c33934c79c7..9d8b860eb14e71f43327b904d87a41a963563bad 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-hostbased.c,v 1.54 2025/08/06 04:53:04 djm Exp $ */
+/* $OpenBSD: auth2-hostbased.c,v 1.55 2025/08/14 09:26:53 dtucker Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -217,7 +217,8 @@ hostbased_key_allowed(struct ssh *ssh, struct passwd *pw,
                    options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
                        fatal_f("sshkey_fingerprint fail");
                error("Refusing certificate ID \"%s\" serial=%llu signed by "
-                   "%s CA %s: %s", key->cert->key_id, key->cert->serial,
+                   "%s CA %s: %s", key->cert->key_id,
+                   (unsigned long long)key->cert->serial,
                    sshkey_type(key->cert->signature_key), fp, reason);
                auth_debug_add("Refused Certificate ID \"%s\" serial=%llu: %s",
                    key->cert->key_id, (unsigned long long)key->cert->serial,