/*
- * 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");
* you may not use this file except in compliance with the License.
* or in the file LICENSE in the source distribution.
*/
-#include "e_os.h"
+#include "internal/nelem.h"
#include "testutil.h"
#include <stdio.h>
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;
return NULL;
}
-static int test_curve()
+static int test_curve(void)
{
EC_GROUP *group = NULL;
EC_POINT *point = NULL;
for ( ; *in != '\0'; in++) {
char c = *in;
- if (!isdigit(c))
+ if (!isdigit((unsigned char)c))
return 0;
ret *= 10;
ret += (c - '0');