From: tb Date: Sun, 18 Dec 2022 12:08:49 +0000 (+0000) Subject: acme-client: inline a confusing and useless define X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=935b6108797cabba3f631149a0fc5e07a2426b2a;p=openbsd acme-client: inline a confusing and useless define --- diff --git a/usr.sbin/acme-client/key.c b/usr.sbin/acme-client/key.c index c3374914547..a6fc437f863 100644 --- a/usr.sbin/acme-client/key.c +++ b/usr.sbin/acme-client/key.c @@ -1,4 +1,4 @@ -/* $Id: key.c,v 1.6 2022/02/22 13:45:09 tb Exp $ */ +/* $Id: key.c,v 1.7 2022/12/18 12:08:49 tb Exp $ */ /* * Copyright (c) 2019 Renaud Allard * Copyright (c) 2016 Kristaps Dzonsons @@ -33,7 +33,6 @@ * Default number of bits when creating a new RSA key. */ #define KBITS 4096 -#define ECCTYPE NID_secp384r1 /* * Create an RSA key with the default KBITS number of bits. @@ -81,7 +80,7 @@ ec_key_create(FILE *f, const char *fname) EC_KEY *eckey = NULL; EVP_PKEY *pkey = NULL; - if ((eckey = EC_KEY_new_by_curve_name(ECCTYPE)) == NULL ) { + if ((eckey = EC_KEY_new_by_curve_name(NID_secp384r1)) == NULL ) { warnx("EC_KEY_new_by_curve_name"); goto err; }