]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Cast serial no for %lld to prevent compiler warnings on some master anongit/master
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 14 Aug 2025 10:03:44 +0000 (10:03 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 14 Aug 2025 10:31:02 +0000 (20:31 +1000)
platforms.

OpenBSD-Commit-ID: afadd741622f16c6733d461c0d6053ed52868a57

auth2-pubkeyfile.c

index 531a266ac336a66610f6110e6c55e304b2d6b42d..9d59e566658e2f117591bab243b673edd1160058 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkeyfile.c,v 1.5 2025/08/06 04:53:04 djm Exp $ */
+/* $OpenBSD: auth2-pubkeyfile.c,v 1.6 2025/08/14 10:03:44 dtucker Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2010 Damien Miller.  All rights reserved.
@@ -389,8 +389,8 @@ auth_check_authkey_line(struct passwd *pw, struct sshkey *key,
  cert_fail_reason:
        error("Refusing certificate ID \"%s\" serial=%llu "
            "signed by %s CA %s via %s: %s", key->cert->key_id,
-           key->cert->serial, sshkey_type(key->cert->signature_key),
-           fp, loc, reason);
+           (unsigned long long)key->cert->serial,
+           sshkey_type(key->cert->signature_key), fp, loc, reason);
        auth_debug_add("Refused Certificate ID \"%s\" serial=%llu: %s",
            key->cert->key_id, (unsigned long long)key->cert->serial, reason);
        goto out;