From e493d6e0ca4157741d2e4cfcb91fd367851f5771 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 21 Jun 2021 09:25:16 +0200 Subject: [PATCH] APPS & TEST: Use ossl_[u]intmax_t rather than [u]intmax_t Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15825) --- apps/x509.c | 4 ++-- test/ecstresstest.c | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/x509.c b/apps/x509.c index 25c75e8574..558351ba30 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -553,11 +553,11 @@ int x509_main(int argc, char **argv) case OPT_CHECKEND: checkend = 1; { - intmax_t temp = 0; + ossl_intmax_t temp = 0; if (!opt_intmax(opt_arg(), &temp)) goto opthelp; checkoffset = (time_t)temp; - if ((intmax_t)checkoffset != temp) { + if ((ossl_intmax_t)checkoffset != temp) { BIO_printf(bio_err, "%s: Checkend time out of range %s\n", prog, opt_arg()); goto opthelp; diff --git a/test/ecstresstest.c b/test/ecstresstest.c index 1ffb7e522e..22d46c50da 100644 --- a/test/ecstresstest.c +++ b/test/ecstresstest.c @@ -18,7 +18,7 @@ #define NUM_REPEATS "1000000" -static intmax_t num_repeats; +static ossl_intmax_t num_repeats; static int print_mode = 0; #ifndef OPENSSL_NO_EC @@ -39,10 +39,11 @@ static const char *kP256DefaultResult = * point multiplication. * Returns the X-coordinate of the end result or NULL on error. */ -static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, intmax_t num) +static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, + ossl_intmax_t num) { BIGNUM *scalar = NULL; - intmax_t i; + ossl_intmax_t i; if (!TEST_ptr(scalar = BN_new()) || !TEST_true(EC_POINT_get_affine_coordinates(group, point, scalar,