bio/b_print.c: recognize even 'j' format modifier.
authorAndy Polyakov <appro@openssl.org>
Wed, 29 Mar 2017 21:10:08 +0000 (23:10 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 30 Mar 2017 17:33:32 +0000 (19:33 +0200)
commit74d9519a68ee484db584aebc6ab6b2cb4bf98b2a
tree1e13a01e1fff525120c3029ba71f2139e687df96
parent12557a3445acc2f53321a3806f0478b998edb9a8
bio/b_print.c: recognize even 'j' format modifier.

'j' is specified as modifier for "greatest-width integer type", which in
practice means 64 bits on both 32- and 64-bit platforms. Since we rely
on __attribute__((__format__(__printf__,...))) to sanitize BIO_print
format, we can use it to denote [u]int64_t-s in platform-neutral manner.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3083)
CHANGES
crypto/bio/b_print.c
test/bioprinttest.c