summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-12-18 12:08:50 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-12-18 12:08:50 +0000
commit65466e6b2f1156f2ddcab5da55c7d5f0f621b7b5 (patch)
tree7b97bc94abc5039dec70099609611a060232b1d7 /usr.sbin
parentef61f8d84c3677332ecaec40b85bcc5f92c19ee1 (diff)
acme-client: inline a confusing and useless define
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/acme-client/key.c5
1 files changed, 2 insertions, 3 deletions
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 <renaud@allard.it>
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -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;
}