Matthias St. Pierre ec0d22fe15 apps/rehash.c: avoid printf format warning [-Wformat]
The `aarch64-linux-android33-clang` cross-compiler (v14.0.6)
complains twice about an unsupported '%n' format specifier,
preventing a successful `--strict-warnings` build:

    error: '%n' specifier not supported on this platform [-Werror,-Wformat]
                BIO_snprintf(buf, buflen, "%s%s%n%08x.%s%d",

This is a false positive, because BIO_snprintf() implements its
own format parsing (which is implemented in the _dopr() function).

This commit fixes the problem by rewriting the code to dispense with
the dubious '%n' format specifier. As a side-effect, the code becomes
a little bit more comprehensible and self-explaining.

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22511)
2023-11-08 10:28:22 +01:00
..
2023-09-11 10:15:30 +02:00
2023-10-25 09:40:48 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-08-23 11:08:11 +10:00
2023-09-20 08:12:07 +10:00
2020-12-15 11:47:17 +01:00
2023-09-07 09:59:15 +01:00
2023-09-28 14:23:29 +01:00
2023-09-24 20:51:42 +02:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2022-09-20 08:18:25 +01:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2022-05-03 13:34:51 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2023-09-28 14:23:29 +01:00
2022-05-03 13:34:51 +01:00
2023-09-21 14:39:36 +02:00
2020-05-13 06:28:36 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-11 10:15:30 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2019-09-28 20:26:36 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00