From a72a9054e06105a26547ea76666dce91c952edb7 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 13 May 2021 07:10:57 +0000 Subject: [PATCH] acme-client: use EC_POINT_{get,set}_affine_cooordinates() The versions with _GFp() suffix only exist for historical reasons. Now that we have EC_POINT_{get,set}_affine_coordinates(), we should stop using the old ones as they provide no benefit. ok florian --- usr.sbin/acme-client/acctproc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/acme-client/acctproc.c b/usr.sbin/acme-client/acctproc.c index a07f9d07021..377f53c12fa 100644 --- a/usr.sbin/acme-client/acctproc.c +++ b/usr.sbin/acme-client/acctproc.c @@ -1,4 +1,4 @@ -/* $Id: acctproc.c,v 1.20 2019/06/17 15:20:10 tb Exp $ */ +/* $Id: acctproc.c,v 1.21 2021/05/13 07:10:57 tb Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -109,9 +109,9 @@ op_thumb_ec(EVP_PKEY *pkey) warnx("BN_new"); else if ((Y = BN_new()) == NULL) warnx("BN_new"); - else if (!EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(ec), + else if (!EC_POINT_get_affine_coordinates(EC_KEY_get0_group(ec), EC_KEY_get0_public_key(ec), X, Y, NULL)) - warnx("EC_POINT_get_affine_coordinates_GFp"); + warnx("EC_POINT_get_affine_coordinates"); else if ((x = bn2string(X)) == NULL) warnx("bn2string"); else if ((y = bn2string(Y)) == NULL) @@ -237,9 +237,9 @@ op_sign_ec(char **prot, EVP_PKEY *pkey, const char *nonce, const char *url) warnx("BN_new"); else if ((Y = BN_new()) == NULL) warnx("BN_new"); - else if (!EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(ec), + else if (!EC_POINT_get_affine_coordinates(EC_KEY_get0_group(ec), EC_KEY_get0_public_key(ec), X, Y, NULL)) - warnx("EC_POINT_get_affine_coordinates_GFp"); + warnx("EC_POINT_get_affine_coordinates"); else if ((x = bn2string(X)) == NULL) warnx("bn2string"); else if ((y = bn2string(Y)) == NULL) -- 2.20.1