X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test%2Fecstresstest.c;h=8cb43e6a428a731d53ba47f4870739de2b9ef612;hb=c6048af23c577bcf85f15122dd03b65f959c9ecb;hp=e16ccd59f6befa0be48e72f0ce0874f18cb4a8c4;hpb=31a80694d425bf7f3a0ed5cc2ee775d9418a5490;p=oweals%2Fopenssl.git diff --git a/test/ecstresstest.c b/test/ecstresstest.c index e16ccd59f6..8cb43e6a42 100644 --- a/test/ecstresstest.c +++ b/test/ecstresstest.c @@ -1,14 +1,14 @@ /* - * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * - * Licensed under the OpenSSL licenses, (the "License"); + * Licensed under the Apache License 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * https://www.openssl.org/source/license.html * or in the file LICENSE in the source distribution. */ -#include "e_os.h" +#include "internal/nelem.h" #include "testutil.h" #include @@ -45,16 +45,15 @@ static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, int64_t num) int64_t i; if (!TEST_ptr(scalar = BN_new()) - || !TEST_true(EC_POINT_get_affine_coordinates_GFp(group, point, - scalar, - NULL, NULL))) + || !TEST_true(EC_POINT_get_affine_coordinates(group, point, scalar, + NULL, NULL))) goto err; for (i = 0; i < num; i++) { if (!TEST_true(EC_POINT_mul(group, point, NULL, point, scalar, NULL)) - || !TEST_true(EC_POINT_get_affine_coordinates_GFp(group, point, - scalar, - NULL, NULL))) + || !TEST_true(EC_POINT_get_affine_coordinates(group, point, + scalar, + NULL, NULL))) goto err; } return scalar; @@ -109,7 +108,7 @@ static int atoi64(const char *in, int64_t *result) for ( ; *in != '\0'; in++) { char c = *in; - if (!isdigit(c)) + if (!isdigit((unsigned char)c)) return 0; ret *= 10; ret += (c - '0');