diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-04-20 17:21:28 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-04-20 17:21:28 +0000 |
commit | 3c53d1b3c0851b4ee6db6c93dc8de359bfb8c254 (patch) | |
tree | e9eb602b6d1e4eed07b8db5d1d1bf818e5b5bf75 /regress/lib/libcrypto | |
parent | d9c0d827220f07146c9a74fb9bf44e8eb170eef0 (diff) |
Adjust ecdhtest.c for affine_coordinates change
Diffstat (limited to 'regress/lib/libcrypto')
-rw-r--r-- | regress/lib/libcrypto/ecdh/Makefile | 4 | ||||
-rw-r--r-- | regress/lib/libcrypto/ecdh/ecdhtest.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/regress/lib/libcrypto/ecdh/Makefile b/regress/lib/libcrypto/ecdh/Makefile index b645771f7bd..ae2641285ab 100644 --- a/regress/lib/libcrypto/ecdh/Makefile +++ b/regress/lib/libcrypto/ecdh/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.3 2014/07/08 15:53:52 jsing Exp $ +# $OpenBSD: Makefile,v 1.4 2021/04/20 17:21:27 tb Exp $ PROG= ecdhtest -LDADD= -lcrypto +LDADD= ${CRYPTO_INT} DPADD= ${LIBCRYPTO} WARNINGS= Yes CFLAGS+= -DLIBRESSL_INTERNAL -Werror diff --git a/regress/lib/libcrypto/ecdh/ecdhtest.c b/regress/lib/libcrypto/ecdh/ecdhtest.c index faf519e07ab..81ba5a4710f 100644 --- a/regress/lib/libcrypto/ecdh/ecdhtest.c +++ b/regress/lib/libcrypto/ecdh/ecdhtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdhtest.c,v 1.10 2018/07/17 17:06:49 tb Exp $ */ +/* $OpenBSD: ecdhtest.c,v 1.11 2021/04/20 17:21:27 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -132,12 +132,12 @@ test_ecdh_curve(int nid, const char *text, BN_CTX *ctx, BIO *out) if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == NID_X9_62_prime_field) { - if (!EC_POINT_get_affine_coordinates_GFp(group, + if (!EC_POINT_get_affine_coordinates(group, EC_KEY_get0_public_key(a), x_a, y_a, ctx)) goto err; } #ifndef OPENSSL_NO_EC2M else { - if (!EC_POINT_get_affine_coordinates_GF2m(group, + if (!EC_POINT_get_affine_coordinates(group, EC_KEY_get0_public_key(a), x_a, y_a, ctx)) goto err; } #endif @@ -149,12 +149,12 @@ test_ecdh_curve(int nid, const char *text, BN_CTX *ctx, BIO *out) if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == NID_X9_62_prime_field) { - if (!EC_POINT_get_affine_coordinates_GFp(group, + if (!EC_POINT_get_affine_coordinates(group, EC_KEY_get0_public_key(b), x_b, y_b, ctx)) goto err; } #ifndef OPENSSL_NO_EC2M else { - if (!EC_POINT_get_affine_coordinates_GF2m(group, + if (!EC_POINT_get_affine_coordinates(group, EC_KEY_get0_public_key(b), x_b, y_b, ctx)) goto err; } #endif |