diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-18 12:08:50 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-18 12:08:50 +0000 |
commit | 65466e6b2f1156f2ddcab5da55c7d5f0f621b7b5 (patch) | |
tree | 7b97bc94abc5039dec70099609611a060232b1d7 /usr.sbin | |
parent | ef61f8d84c3677332ecaec40b85bcc5f92c19ee1 (diff) |
acme-client: inline a confusing and useless define
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/acme-client/key.c | 5 |
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; } |